
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* Header Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.8s ease;
}

#main-header.visible {
    opacity: 1;
    transform: translateY(0);
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Inicio Section */
#inicio {
    background-image: url("assets/img/fondo.png");
    background-repeat: no-repeat;   /* evita que se repita */
    background-size: cover;         /* hace que cubra todo el contenedor */
    background-position: center;    /* centra la imagen */
    color: white;
}


.container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    height: 80vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.left-panel {
    flex: 1;
    background: linear-gradient(45deg, #203e6b9c, #faf5ee);
    position: relative;
    overflow: hidden;

    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Centra verticalmente */
}

.left-panel video {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain; /* Ajusta el video para que se vea completo */
}

.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(38, 91, 141, 0.774);
    backdrop-filter: blur(10px);
}

.glass3d {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 1s ease forwards 0.5s;
}

.glass3d h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass3d p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

#loginButton {
    background: linear-gradient(45deg, #1b8882, #174892);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1.5s;
}

#loginButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Contenedor de la sección */
/* Fondo animado azul desde arriba hacia abajo */
#proyectos {
    padding: 4rem 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #102a43, #1c3f5f, #345976, #1f2d3d);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  /* Animación de fondo */
  @keyframes gradientMove {
    0% {
      background-position: 50% 0%;
    }
    50% {
      background-position: 50% 100%;
    }
    100% {
      background-position: 50% 0%;
    }
  }
  
  /* Códigos flotando (estilo hacker) */
  #proyectos {
    position: relative;
    overflow: hidden; /* Para que los íconos no sobresalgan */
  }
  
  /* Ícono 1 */
  #proyectos::before {
    content: "</>";
    position: absolute;
    top: -10%;
    left: 20%;
    font-size: 8rem;
    color: rgba(0, 255, 255, 0.06);
    animation: floatCode1 12s infinite linear;
  }
  
  /* Ícono 2 */
  #proyectos::after {
    content: "const dev = true;";
    position: absolute;
    bottom: -15%;
    right: 10%;
    font-size: 1.8rem;
    color: rgba(173, 216, 230, 0.05);
    animation: floatCode2 18s infinite linear;
  }
  
  /* Ícono 3 */
  #proyectos::marker {
    content: "";
  }
  
  /* Ícono 3 y más: usando spans internos */
  #proyectos .code-icon-1,
  #proyectos .code-icon-2,
  #proyectos .code-icon-3 {
    position: absolute;
    font-size: 3rem;
    color: rgba(0, 255, 255, 0.05);
    pointer-events: none;
  }
  
  #proyectos .code-icon-1 {
    content: "{}";
    top: 30%;
    left: 10%;
    animation: floatCode3 16s infinite linear;
  }
  
  #proyectos .code-icon-2 {
    content: "</div>";
    top: 60%;
    left: 70%;
    font-size: 4rem;
    animation: floatCode4 20s infinite linear;
  }
  
  #proyectos .code-icon-3 {
    content: "let x = 42;";
    top: 80%;
    left: 30%;
    font-size: 2.2rem;
    animation: floatCode5 22s infinite linear;
  }
  
  /* Animaciones extra */
  @keyframes floatCode1 {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(200%) rotate(360deg); }
  }
  
  @keyframes floatCode2 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-250%) rotate(-360deg); }
  }
  
  @keyframes floatCode3 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200%) rotate(180deg); }
  }
  
  @keyframes floatCode4 {
    0% { transform: translateY(0); }
    100% { transform: translateY(250%) rotate(720deg); }
  }
  
  @keyframes floatCode5 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-150%) rotate(-180deg); }
  }
  
  
  /* Título de sección */
  #proyectos .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #0a868f;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  }
  
  /* Grid para proyectos */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }
  
  /* Cards */
  .project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.8rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
  }
  
  .project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0, 187, 255, 0.3);
  }
  
  /* Imagen */
  .project-img {
    width: 100%;
    height: 200px;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
  }
  
  .project-card:hover .project-img {
    transform: scale(1.05);
  }
  
  .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* Título */
  .project-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #027a66d2;
  }
  
  /* Descripción */
  .project-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #e1f3ff;
  }
  
  /* Stack de tecnologías */
  .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
  }
  
  .tech-tag {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #a5d6ff;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(100, 200, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
  }
  
  .tech-tag:hover {
    background: rgba(80, 180, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 6px 10px rgba(125, 229, 255, 0.4);
  }
  
  /* Responsive */
  @media (max-width: 480px) {
    #proyectos {
      padding: 3rem 1rem;
    }
  
    .project-card {
      padding: 1.2rem 1.5rem;
    }
  
    .project-img {
      height: 160px;
    }
  
    .project-card h3 {
      font-size: 1.3rem;
    }
  
    .project-card p {
      font-size: 0.9rem;
    }
  
    .tech-tag {
      font-size: 0.8rem;
      padding: 0.4rem 1rem;
    }
  }
  
  
/* ========================================= */
/* Habilidades Section - ESTILO PROFESIONAL Y SUTIL */
/* ========================================= */

/* 1. Paleta de colores sobria y profesional */
#habilidades {
  /* Imagen de fondo con animación */
  background-image: 
    linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.85)), /* Overlay oscuro para mantener legibilidad */
    url('assets/img/fondo.png'); /* Imagen de circuitos/tecnología */
  background-size: 120% 120%; /* Más grande para permitir movimiento */
  background-position: center center;
  background-attachment: fixed; /* Efecto parallax */
  background-repeat: no-repeat;
  
  color: #f0f0f0;
  padding: 6rem 2rem;
  font-family: 'Inter', sans-serif;
  
  /* Animación de zoom sutil */
  animation: backgroundZoom 20s ease-in-out infinite alternate;
  
  position: relative;
  overflow: hidden;
}

@keyframes backgroundZoom {
  0% {
    background-size: 120% 120%;
  }
  100% {
    background-size: 130% 130%;
  }
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
} 

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* LA CARD: El corazón del diseño */
.skill-category {
  /* 2. Sin efectos de "vidrio", fondo sólido y sutilmente más claro */
  background-color: #1E1E1E;
  border-radius: 12px;
  padding: 2.5rem;
  
  /* 3. Borde sutil para definir la card */
  border: 1px solid #2f2f2f;

  /* 4. Sombra extremadamente sutil para una profundidad mínima */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  
  /* 5. Transición para una interacción elegante y no invasiva */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* 6. Interacción minimalista: solo cambia el color del borde y fondo */
.skill-category:hover {
  background-color: #242424;
  border-color: #4facfe; /* Un toque de color de acento al interactuar */
}

/* --- Contenido de la card, enfocado en la claridad --- */

.skill-icon {
  /* 7. Icono de un solo color, usando el color de acento */
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #4facfe; /* El mismo color de acento del hover */
}

/* Título de la categoría */
.skill-category h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff; /* Título ligeramente más brillante que el texto normal */
}

.skill-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.skill-list li {
  margin: 0.7rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  color: #c5c8cc; /* Color de texto secundario, fácil de leer */
}

/* 8. Viñeta minimalista y limpia */
.skill-list li::before {
  content: '—'; /* Un guión es más sobrio que un checkmark */
  color: #4facfe; /* Usando el color de acento para consistencia */
  margin-right: 0.75rem;
  font-weight: bold;
}

/* ========================================= */
/* Contacto Section - DISEÑO MODERNO Y DINÁMICO */
/* ========================================= */

#contacto {
  /* Fondo animado con gradiente dinámico */
  background: linear-gradient(
      135deg, 
      #667eea 0%, 
      #764ba2 25%, 
      #f093fb 50%, 
      #f5576c 75%, 
      #4facfe 100%
  );
  background-size: 400% 400%;
  animation: gradientFlow 12s ease infinite;
  color: #333;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Animación del fondo gradiente */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Partículas flotantes de fondo */
#contacto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
      radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
      radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
      radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 2px, transparent 2px);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  animation: floatingParticles 20s linear infinite;
  z-index: 0;
}

@keyframes floatingParticles {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-100px) rotate(360deg); }
}

.contact-container {
  max-width: 1000px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 
      0 25px 50px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Efecto de brillo en el contenedor */
.contact-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ========================================= */
/* INFORMACIÓN DE CONTACTO */
/* ========================================= */

.contact-info h3 {
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  font-weight: 700;
}

.contact-item {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 16px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.contact-item:hover {
  transform: translateX(15px) scale(1.02);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.4);
}

.contact-item:hover::before {
  left: 100%;
}

.contact-icon {
  font-size: 1.8rem;
  margin-right: 1rem;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================= */
/* FORMULARIO DE CONTACTO */
/* ========================================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

/* Labels flotantes */
.form-group label {
  position: absolute;
  left: 1.5rem;
  top: 1.2rem;
  color: #999;
  transition: all 0.3s ease;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 0.5rem;
}

.contact-form input:focus + label,
.contact-form textarea:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 1rem;
  font-size: 0.85rem;
  color: #667eea;
  font-weight: 600;
}

.submit-btn {
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
  background-size: 200% 200%;
  color: white;
  border: none;
  padding: 1.3rem 3rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
  background-position: right center;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* ========================================= */
/* Contacto Section - DISEÑO MODERNO Y DINÁMICO */
/* ========================================= */

#contacto {
  /* Fondo animado con gradiente dinámico en tonos oscuros y azules */
  background: linear-gradient(
      135deg, 
      #0f0f0f 0%, 
      #1a1a2e 25%, 
      #16213e 50%, 
      #0f3460 75%, 
      #4facfe 100%
  );
  background-size: 400% 400%;
  animation: gradientFlow 12s ease infinite;
  color: #f0f0f0;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Animación del fondo gradiente */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Partículas flotantes de fondo */
#contacto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
      radial-gradient(circle at 20% 80%, rgba(79, 172, 254, 0.3) 1px, transparent 1px),
      radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.2) 1px, transparent 1px),
      radial-gradient(circle at 40% 40%, rgba(79, 172, 254, 0.15) 2px, transparent 2px);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  animation: floatingParticles 20s linear infinite;
  z-index: 0;
}

@keyframes floatingParticles {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-100px) rotate(360deg); }
}

.contact-container {
  max-width: 1000px;
  width: 100%;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 
      0 25px 50px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(79, 172, 254, 0.2);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(79, 172, 254, 0.3);
}

/* Efecto de brillo en el contenedor */
.contact-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.8), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ========================================= */
/* INFORMACIÓN DE CONTACTO */
/* ========================================= */

.contact-info h3 {
  background: linear-gradient(45deg, #4facfe, #00d4ff, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  font-weight: 700;
}

.contact-item {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 16px;
  border: 1px solid rgba(79, 172, 254, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  color: #f0f0f0;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.2), transparent);
  transition: left 0.6s ease;
}

.contact-item:hover {
  transform: translateX(15px) scale(1.02);
  box-shadow: 0 15px 30px rgba(79, 172, 254, 0.4);
  border-color: rgba(79, 172, 254, 0.6);
}

.contact-item:hover::before {
  left: 100%;
}

.contact-icon {
  font-size: 1.8rem;
  margin-right: 1rem;
  background: linear-gradient(45deg, #4facfe, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================= */
/* FORMULARIO DE CONTACTO */
/* ========================================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid #3a3a3a;
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(45, 45, 45, 0.9);
  color: #f0f0f0;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4facfe;
  background: rgba(45, 45, 45, 1);
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
  transform: translateY(-2px);
}

/* Labels flotantes */
.form-group label {
  position: absolute;
  left: 1.5rem;
  top: 1.2rem;
  color: #999;
  transition: all 0.3s ease;
  pointer-events: none;
  background: rgba(45, 45, 45, 0.9);
  padding: 0 0.5rem;
}

.contact-form input:focus + label,
.contact-form textarea:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 1rem;
  font-size: 0.85rem;
  color: #4facfe;
  font-weight: 600;
}

.submit-btn {
  background: linear-gradient(45deg, #4facfe, #00d4ff, #4facfe);
  background-size: 200% 200%;
  color: white;
  border: none;
  padding: 1.3rem 3rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
  background-position: right center;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* ========================================= */
/* TÍTULO DE SECCIÓN MEJORADO */
/* ========================================= */

.section-title {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(45deg, #f0f0f0, #4facfe, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 1s ease forwards;
  position: relative;
  z-index: 2;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(45deg, #4facfe, #00d4ff, #4facfe);
  margin: 1rem auto;
  border-radius: 2px;
  animation: expandLine 1s ease 0.5s forwards;
  transform: scaleX(0);
}

@keyframes expandLine {
  to {
      transform: scaleX(1);
  }
}

/* ========================================= */
/* ANIMACIONES */
/* ========================================= */

@keyframes slideUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media (max-width: 768px) {
  #contacto {
      padding: 4rem 1.5rem;
  }
  
  .contact-container {
      padding: 2.5rem;
      margin: 1rem;
  }

  .contact-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
  }

  .section-title {
      font-size: 2.5rem;
  }
  
  .contact-item:hover {
      transform: translateY(-5px) scale(1.02);
  }
}

@media (max-width: 480px) {
  .section-title {
      font-size: 2rem;
  }
  
  .contact-container {
      padding: 2rem;
  }
  
  .contact-form input,
  .contact-form textarea {
      padding: 1rem;
  }
}

/* ========================================= */
/* INDICADOR DE SCROLL MEJORADO */
/* ========================================= */

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  animation: bounce 2s infinite;
  z-index: 2;
  cursor: pointer;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: rgba(255, 255, 255, 1);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
      transform: translateX(-50%) translateY(0);
  }
  40% {
      transform: translateX(-50%) translateY(-15px);
  }
  60% {
      transform: translateX(-50%) translateY(-8px);
  }
}