/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --fondo: #000123;
  --texto: #e6eef9;
  --footer-bg: rgba(0,0,0,0.35);
  --btn-bg: #ff0f7b;
  --btn-text: #ffffff;
  --highlight: #ff0f7b;
}

html { scroll-behavior: auto; }

body {
  min-height: 100%;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: var(--fondo);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.wrap { min-height: 100%; display: flex; flex-direction: column; }

/* ===== HERO ===== */
main {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 10% 10%;
  background-image: url('Assets/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.hero-text { max-width: 600px; }
.hero-text h1 { font-family: 'Roboto', cursive; font-size:3.2rem; margin: 0 0 0.1rem 0; letter-spacing: 2px; }
.hero-text h2 { font-family: 'Orbitron', sans-serif; font-size: 4rem; margin: 0 0 2rem 0; line-height: 1.2; word-wrap: break-word; margin-bottom: 8rem; }
.hero-text .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 1rem; font-family: 'Orbitron', sans-serif; background-color: var(--btn-bg); color: var(--btn-text); border: none; border-radius: 50px; cursor: pointer; text-decoration: none; transition: all 0.3s ease; position: relative; overflow: hidden; }
.hero-text .btn:hover { background-color: #e00d6c; }

/* ===== ABOUT ===== */
.about { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: auto; padding: 4rem 10%; max-width: 3000px; margin: 0 auto; }
.about h3 { font-family: 'Orbitron', cursive; font-size: 2.5rem; margin-bottom: 1rem; }
.about p { font-family: 'Roboto', sans-serif; font-size: 1.15rem; line-height: 1.8; color: var(--texto); margin-bottom: 4rem; max-width: 900px; }
.about .projects { font-family: 'Orbitron', sans-serif; font-size: 1.25rem; color: var(--highlight); text-decoration: none; font-weight: bold; display: flex; flex-direction: column; align-items: center; margin-top: 3rem; }
.about .projects::after { content: '↓'; margin-top: 0.5rem; font-size: 2rem; animation: bounce 1.5s infinite ease-in-out;}

/* Animación de rebote */
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); }0% { transform: translateY(8px); }60% { transform: translateY(4px);} }

/* ===== PROJECTS ===== */
.projects-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: auto;
  padding: 2rem 4rem 10%;
  max-width: 3000px;
  margin: 0 auto;
}
.projects-section h3 {
  font-family: 'Orbitron', cursive;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--texto);
  letter-spacing: 0.5rem;
}
.projects-section p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--texto);
  margin-bottom: 3rem;
  max-width: 900px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 1200px;
}
.project-card-link {
  text-decoration: none; 
  color: inherit;  
  display: block; 
}
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 350px;         
  height: 520px;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(255, 15, 123, 0.3);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.project-card h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--highlight);
}

.project-card p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto);
}

/* CONTACT */
.contact-section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--texto);
  background-image: url('Assets/FinalBackgroundImage.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.contact-section::before {
  content: "";
  position: absolute;
  top:0;
  left:0;
  width:100%;
  min-height:100%;
  background: rgba(0,1,35,0.6);
  z-index:1;
}
.contact-section div {
  position: relative;
  z-index:2;
  max-width: 600px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.contact-section h3 { font-family: 'Orbitron', cursive; font-size: 2.5rem; margin-bottom: 5px; }
.contact-section p { font-family: 'Roboto', sans-serif; font-size: 1.25rem; line-height: 1.6; margin-bottom: 90px; }
.contact-subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: #777;
  margin-top: 5px;
  margin-bottom: 20px;
  text-align: center;
}
.contact-info span { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; }
.social-links { display: flex !important; flex-direction: row !important; gap: 3rem; justify-content: center; margin-top: 0.5rem; }
.social-links a img { width: 30px; min-height: 30px; object-fit: contain; transition: transform 0.3s; }
.social-links a img:hover { transform: scale(1.2); }

/* FOOTER */
footer { flex-shrink:0; padding:1rem 1.25rem; text-align:center; font-size:0.95rem; background: var(--footer-bg); color: var(--texto); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }

/* IMÁGENES */
.mi-foto {
  width: 250px;  
  height: 250px;    
  border-radius: 50%; 
  object-fit: cover; 
  border: 4px solid white;
}

/* EFECTOS */
.glitter {
  position: absolute;
  pointer-events: none;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, #ffd6ec 0%, #ff80c0 70%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 4px #ffb6d9, 0 0 8px #ff4fa1;
  animation: glitterTrail 0.8s ease-out forwards;
  z-index: 9999;
}
@keyframes glitterTrail {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(0.1); opacity: 0; }
}

.btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #ffd6ec 0%, #ff80c0 40%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s ease;
  pointer-events: none;
  border-radius: 50%;
}
.btn:hover::before {
  opacity: 0.6;
  transform: scale(1);
}
.btn:hover {
  box-shadow: 0 0 12px rgba(255, 15, 123, 0.6), 0 0 25px rgba(255, 128, 192, 0.4);
  transform: scale(1.05);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  main { padding: 12% 8%; }
  .hero-text h2 { font-size: 3rem; margin-bottom: 4rem; }
  .projects-section { padding: 2rem 2rem 8%; }
}
@media (max-width: 800px) {
  main { padding: 12% 6%; }
  .hero-text h1 { font-size: 2.5rem; }
  .hero-text h2 { font-size: 2.25rem; margin-bottom: 3rem; }
  .about, .projects-section, .contact-section { padding: 2.5rem 6%; }
  .projects-section h3 { font-size: 2rem; letter-spacing: 0.3rem; }
  .projects-grid { gap: 1.5rem; }
  .project-card { width: auto; height: auto; }
  .social-links { gap: 1.5rem; }
}
@media (max-width: 480px) {
  main { padding: 15% 4%; }
  .hero-text h1 { font-size: 2rem; }
  .hero-text h2 { font-size: 1.6rem; margin-bottom: 2rem; }
  .mi-foto { width: 150px; height: 150px; }
  .projects-section h3 { font-size: 1.8rem; letter-spacing: 0.2rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-card { width: 100%; height: auto; }
  .contact-section h3 { font-size: 2rem; }
  .contact-section p { font-size: 1rem; margin-bottom: 60px; }
  .contact-subtitle { font-size: 0.8rem; }
}
