/* --- HERO SECTION --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
}

/* Imagen y Badge */
.hero-image {
  flex: 1;
  max-width: 400px;
  /* Usamos Flex para centrar la imagen dentro de su contenedor */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Clave para el badge absoluto */
}

.hero-image .profile-pic {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Badge Flotante (Google Educator) */
.floating-badge {
  position: absolute;
  /* Posición Desktop: Abajo a la izquierda de la imagen */
  bottom: 10px;
  left: -20px;

  background-color: #ffffff;
  padding-top: 2px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #e9ecef;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10;
  width: 160px; /* Ancho controlado */
}

.badge-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: #555;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-top: 4px;
}

.floating-badge img {
  width: 100%;
  height: auto;
  display: block;
  padding: 2px 0;
}

.floating-badge:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(52, 168, 83, 0.3);
  border-color: #34a853;
}

/* Contenido de Texto */
.hero-content {
  flex: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-content .subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.hero-content .value-proposition {
  line-height: 1.8;
  font-size: 1rem;
}

/* Botones CTA */
.cta-container {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  border: 2px solid var(--accent-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 196, 154, 0.2);
}

.cta-button:hover {
  background-color: #00a07d;
  border-color: #00a07d;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 196, 154, 0.4);
}

.cta-button-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  /* margin-left: 1rem; Eliminado para usar GAP en el contenedor */
  transition: all 0.3s ease;
}

.cta-button-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(10, 37, 64, 0.2);
}

/* --- TRAYECTORIA --- */
.trajectory {
  padding: 5rem 0;
  background-color: #ffffff;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Por defecto 2 columnas */
  gap: 2rem;
}

.exp-card {
  background: var(--background-color);
  padding: 2rem;
  border-radius: 10px;
  border-left: 5px solid var(--accent-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.exp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}

.exp-card .date {
  display: block;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.exp-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* --- CERTIFICADOS VERTICALES --- */
.certifications-strip {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.certifications-strip .title {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.cert-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cert-card-vertical {
  background: white;
  width: 240px;
  padding: 1rem 1rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.cert-card-vertical:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

.cert-logo-img-large {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 0rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.cert-name {
  display: block;
  color: #333;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0rem;
}

.cert-validity {
  display: block;
  font-size: 0.7rem;
  color: #666;
  background: #f0f2f5;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* --- LOGOS --- */
.logo-gallery {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.logo-gallery .title {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3.5rem;
}

.logo-item {
  max-width: 130px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* --- CONTACT CTA --- */
/* .contact-cta {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
} */

/* .contact-cta {
  padding: 6rem 0;
  background-color: var(--primary-color);
  background: linear-gradient(135deg, #0a2540 30%, #004e5a 100%),
    url("https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1567&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--accent-color);
} */

.contact-cta {
  padding: 6rem 0;
  background-color: var(--primary-color);
  background: linear-gradient(
      135deg,
      rgba(10, 37, 64, 0.85) 30%,
      rgba(0, 78, 90, 0.85) 100%
    ),
    url("https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1567&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--accent-color);
}

/* background: linear-gradient(to right, var(--primary-color) 30%, #008f70 100%);
  color: #ffffff;
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 196, 154, 0.3), inset 0 0 5px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); 
background: 
    linear-gradient(rgba(10, 37, 64, 0.9), rgba(10, 37, 64, 0.9)),
    url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1567&q=80');  
*/

.contact-cta::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--accent-color);
  filter: blur(80px);
  opacity: 0.3;
  border-radius: 50%;
  pointer-events: none;
}

/* .contact-cta {
  padding: 5rem 0;
  background-color: var(--primary-color);
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  color: white;
  text-align: center;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
} */

/* .contact-cta {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #051424 0%, var(--primary-color) 100%);
  color: white;
  text-align: center;
  border-top: 4px solid var(--accent-color); 
} */

/* .contact-cta {
  padding: 6rem 0; 
  background-color: var(--primary-color);
  background: 
    linear-gradient(rgba(10, 37, 64, 0.9), rgba(10, 37, 64, 0.9)),
    url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1567&q=80'); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed; 
  color: white;
  text-align: center;
} */

.contact-cta h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.contact-item:hover {
  color: var(--accent-color);
}

/* =========================================
   MEDIA QUERIES (MOBILE OPTIMIZATION)
   ========================================= */

@media (max-width: 768px) {
  /* 1. HERO: Invertimos el orden para que la foto quede arriba */
  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
    padding-top: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .cta-container {
    justify-content: center; /* Centrar botones */
  }

  /* 2. BADGE MOVIL: Lo ponemos abajo al centro */
  .floating-badge {
    position: absolute;
    left: 50%;
    bottom: -20px; /* Que sobresalga un poco por abajo */
    transform: translateX(-50%); /* Centrado matemático */
    width: 140px;
    background: white;
    z-index: 20;
    right: auto; /* Anulamos estilos desktop */
  }

  .floating-badge:hover {
    /* Mantenemos el centrado al hacer hover */
    transform: translateX(-50%) translateY(-5px) scale(1.05);
  }

  /* 3. TRAYECTORIA: 1 Columna */
  .experience-grid {
    grid-template-columns: 1fr;
  }

  /* 4. LOGOS: Más pequeños y juntos */
  .logo-container {
    gap: 2rem;
  }
  .logo-item {
    max-width: 100px;
  }

  /* 5. CONTACTO: Stack vertical */
  .contact-info {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
}
