/* VARIABLES GLOBALES */
:root {
  --brand-navy: #001A33;
  --brand-coral: #E46B51;
  --brand-coral-hover: #E46B51;
  --header-orange: #E46B51;
}

/* UTILIDADES BÁSICAS */
body {
  font-family: system-ui, -apple-system, sans-serif;
}
.bg-navy { background-color: var(--brand-navy) !important; }
.text-navy { color: var(--brand-navy); }

/* ========================================= */
/* NAVBAR Y CABECERA                         */
/* ========================================= */
.header-logo {
  width: 100px;  /* Cambia este número hasta que quede del tamaño perfecto */
  height: auto;  /* Esto evita que el logo se estire o se achate */
  object-fit: contain;
}

.header-logo-text {
  font-size: 13px;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff !important;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--header-orange) !important;
}

.btn-start-learning {
  background-color: var(--header-orange);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50px;
  padding: 10px 24px;
  border: none;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-start-learning:hover {
  background-color: #f7813e;
  transform: scale(1.03);
}

/* ========================================= */
/* BOTONES DE FILTRO Y CURSOS                */
/* ========================================= */
.btn-filter {
  border: 1px solid var(--brand-navy);
  color: var(--brand-navy);
  border-radius: 20px;
  font-size: 14px;
  padding: 6px 18px;
  transition: all 0.2s ease;
}

.btn-filter.active, 
.btn-filter:hover {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.btn-coral {
  background-color: var(--brand-coral);
  color: #ffffff;
  border-radius: 25px;
  font-weight: 600;
  border: none;
  padding: 10px 16px;
  transition: background-color 0.2s ease;
}

.btn-coral:hover {
  background-color: var(--brand-coral-hover);
  color: #ffffff;
}

/* ========================================= */
/* TARJETAS DE CURSO                         */
/* ========================================= */
.course-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.course-img {
  height: 180px;
  object-fit: cover;
}

.avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-navy);
}

.micro-text {
  font-size: 10px;
  letter-spacing: 0.5px;
}

/* ========================================= */
/* TAMAÑO DEL LOGO                           */
/* ========================================= */
.header-logo {
  width: 150px; /* Cambia este número para hacerlo más grande o más chico */
  height: auto;
  object-fit: contain;
}

/* ========================================= */
/* SECCIÓN DE PORTADA (IMAGEN Y CAPAS)       */
/* ========================================= */
.hero-section {
  position: relative;
  min-height: 100vh; /* Hace que ocupe toda la altura de la pantalla */
  /* ¡IMPORTANTE! REEMPLAZA EL NOMBRE DE LA IMAGEN ABAJO POR LA TUYA */
  background-image: url('../img/portada.png'); 
  background-size: cover;
  background-position: center top;
  padding-top: 80px; /* Compensa el espacio del navbar */
}

/* Oscurece un poco el fondo del lado izquierdo para poder leer el texto */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 26, 51, 0.95) 0%, rgba(0, 26, 51, 0.2) 100%);
  z-index: 1;
}

.hero-title {
  font-size: 4rem; /* Tamaño de la letra grande */
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
}

/* Animación del cursor titilando al escribir */
.typewriter-cursor {
  font-weight: bold;
  color: #ffffff;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========================================= */
/* BANNER SEPARADOR                          */
/* ========================================= */
.banner-separator-container {
  /* Opcional: un fondo sutil por si la pantalla es muy ancha */
  background-color: #faf7f7; 
  overflow: hidden; /* Evita que el crecimiento genere barras de desplazamiento */
}

.banner-separator-img {
  width: 100%;
  max-width: 250px;
  border-radius: 12px; /* Le da unos bordes un poco redondeados y modernos */
  
  /* Aquí ocurre la magia: le decimos que cualquier cambio tome 0.3 segundos y sea suave */
  transition: transform 0.4s ease, filter 0.4s ease;
  cursor: pointer; /* Cambia la flecha por la manito para invitar a interactuar */
}

/* Lo que pasa cuando el mouse pasa por encima (hover) */
.banner-separator-img:hover {
  transform: scale(1.03) translateY(-3px); /* Crece un 3% y sube un poquito */
  filter: drop-shadow(0 15px 25px rgba(0, 26, 51, 0.15)); /* Crea una sombra elegante */
}
/* ========================================= */
/* TARJETAS EN PROCESO (COMING SOON)         */
/* ========================================= */

/* Le quitamos el efecto hover para que no se eleve al pasar el mouse */
.course-coming-soon:hover {
  transform: none !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05) !important;
  cursor: default;
}

/* Ponemos la imagen en blanco y negro y un poco transparente */
.course-coming-soon .course-img {
  filter: grayscale(100%) opacity(0.6);
}

/* Etiqueta flotante de Próximamente */
.badge-coming-soon {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--brand-navy);
  color: white;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 20px;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ========================================= */
/* LÍNEA SEPARADORA ELEGANTE                 */
/* ========================================= */
.elegant-divider {
  border: 0;
  height: 1px;
  /* Crea una línea que se difumina hacia los lados usando tu color navy */
  background: linear-gradient(to right, transparent, rgba(0, 34, 68, 0.15), transparent);
  margin: 4rem auto; /* Da espacio arriba y abajo */
  width: 80%; /* No toca los bordes de la pantalla */
}
/* ========================================= */
/* SECCIÓN QUIÉNES SOMOS                     */
/* ========================================= */
.text-coral { 
  color: var(--brand-coral); 
}

.about-img-wrapper {
  padding: 20px;
}

/* Redondeamos solo dos esquinas (arriba-derecha y abajo-izquierda) para el toque moderno */
.about-img {
  border-radius: 0 50px 0 50px; 
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Los cuadrados decorativos detrás de la imagen */
.about-shape {
  position: absolute;
  width: 90px;
  height: 90px;
  z-index: 1;
}

.shape-top-left {
  top: 0;
  left: 0;
  background-color: var(--brand-navy); /* Cuadro azul marino */
  border-radius: 20px 0 0 0;
}

.shape-bottom-right {
  bottom: 0;
  right: 0;
  background-color: var(--brand-coral); /* Cuadro coral */
  border-radius: 0 0 20px 0;
}

/* ========================================= */
/* BANNER DE MÉTRICAS (ESTADÍSTICAS)         */
/* ========================================= */
.metrics-banner {
  /* Usamos un degradado azul moderno basado en tus colores */
  background: linear-gradient(135deg, #002244 0%, var(--brand-navy) 100%);
  position: relative;
  overflow: hidden;
}

/* Opcional: Esto simula un poco la textura del fondo de tu imagen */
.metrics-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
/* ========================================= */
/* TARJETAS DE METODOLOGÍA                   */
/* ========================================= */

.method-icon-box {
  width: 55px;
  height: 55px;
  font-size: 1.5rem;
  background-color: rgba(228, 107, 81, 0.1); /* Coral transparente */
  color: var(--brand-coral);
  transition: all 0.3s ease;
}

.method-card {
  border: 1px solid transparent; /* Borde invisible inicial para que no salte el layout */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Efecto Hover: La tarjeta se eleva, gana sombra y un borde coral sutil */
.method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 26, 51, 0.08) !important;
  border-color: rgba(228, 107, 81, 0.3);
}

/* El ícono se vuelve color coral sólido al pasar el mouse */
.method-card:hover .method-icon-box {
  background-color: var(--brand-coral);
  color: #ffffff;
}

/* ========================================= */
/* SECCIÓN CONTACTO                          */
/* ========================================= */

.contact-card {
  /* Sombra flotante idéntica a la de tu imagen de referencia */
  box-shadow: 0 20px 40px rgba(0, 26, 51, 0.1) !important;
  border: 1px solid rgba(0,0,0,0.05);
}

.custom-input {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 12px 15px;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
}

/* Efecto al hacer clic en los campos de texto */
.custom-input:focus {
  background-color: #ffffff;
  border-color: var(--brand-coral);
  box-shadow: 0 0 0 4px rgba(228, 107, 81, 0.15);
  outline: none;
}

/* Botones de Redes Sociales */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: var(--brand-navy);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background-color: var(--brand-coral);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(228, 107, 81, 0.3);
}
/* ========================================= */
/* BANNER DE TRANSICIÓN DE ÉXITO (NUEVO)     */
/* ========================================= */

.success-separator-banner {
  /* Fondo azul marino oscuro para el contraste */
  background-color: var(--brand-navy, #001A33);
  position: relative;
  overflow: hidden; /* Mantiene las formas decorativas dentro */
}

/* Color de texto muted para fondos oscuros */
.text-muted-white {
  color: rgba(255, 255, 255, 0.75);
}

/* Asegura que el contenido esté por encima de las formas decorativas */
.z-1 {
  position: relative;
  z-index: 1;
}

/* El cuadro del icono de chat */
.separator-icon-box {
  width: 75px;
  height: 75px;
  background-color: var(--brand-coral, #E46B51); /* Coral sólido para destacar */
  color: #ffffff;
  font-size: 2.2rem;
  box-shadow: 0 10px 25px rgba(228, 107, 81, 0.3); /* Sombra suave para que flote */
}

/* Estilos para las formas geométricas decorativas */
.separator-shape {
  position: absolute;
  width: 150px;
  height: 150px;
  background-color: rgba(255, 255, 255, 0.04); /* Blanco ultra-sutil */
  border-radius: 40px;
  transform: rotate(45deg); /* Gira las formas para un toque moderno */
  z-index: 0;
}

.shape-top-left {
  top: -30px;
  left: -40px;
}

.shape-bottom-right {
  bottom: -40px;
  right: -50px;
}

/* Un pequeño truco de transición suave para el botón */
.btn.transition {
  transition: all 0.3s ease;
}

.btn.transition:hover {
  transform: translateY(-4px); /* Se eleva un poco al hover */
  box-shadow: 0 15px 30px rgba(228, 107, 81, 0.4) !important;
}
/* ========================================= */
/* FOOTER PRINCIPAL                          */
/* ========================================= */

.site-footer {
  /* Degradado azul basado en tu imagen */
  background: linear-gradient(135deg, #005699 0%, var(--brand-navy, #003366) 100%);
  position: relative;
  overflow: hidden;
}

/* Efecto opcional de textura/puntos sutiles en el fondo */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.03) 2px, transparent 2.5px);
  background-size: 100px 100px; /* Separación de los puntos */
  pointer-events: none;
  z-index: 0;
}

.site-footer .z-1 {
  position: relative;
  z-index: 1;
}

/* Estilos del Logo */
.footer-logo {
  max-width: 180px; /* Ajusta este tamaño según lo necesites */
  height: auto;
  display: inline-block;
}

/* Línea divisoria blanca y sutil */
.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1rem;
  opacity: 1;
}

/* Texto de Copyright */
.footer-copyright {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
/* ========================================= */
/* BOTÓN FLOTANTE "VOLVER ARRIBA"            */
/* ========================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--brand-coral, #E46B51);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(228, 107, 81, 0.4);
  /* Empieza oculto */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999; /* Se asegura de flotar sobre cualquier otra sección */
}

/* Efecto hover al pasar el mouse */
.back-to-top:hover {
  background-color: var(--brand-navy, #001A33);
  color: #ffffff;
  transform: translateY(-5px); /* Pequeño salto hacia arriba */
  box-shadow: 0 8px 20px rgba(0, 26, 51, 0.3);
}

/* Esta clase se encenderá con JavaScript cuando bajemos */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* ========================================= */
/* BOTÓN DE WHATSAPP (GHOST / CORAL)         */
/* ========================================= */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  /* Lo ubicamos a la derecha, calculando el espacio para que quede justo al lado del botón de subir */
  /* (30px de margen + 45px del botón de subir + 15px de separación = 90px) */
  right: 90px; 
  left: auto; /* Aseguramos que no se vaya a la izquierda */
  
  /* Diseño Ghost: Fondo transparente, texto y borde Coral */
  background-color: transparent;
  color: var(--brand-coral, #E46B51);
  border: 2px solid var(--brand-coral, #E46B51);
  
  /* Ajustamos el padding ligeramente para compensar los 2px del borde */
  padding: 8px 20px; 
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 999;
  transition: all 0.3s ease;
}

/* Efecto al pasar el mouse: Se rellena de coral, texto blanco y una sombra sutil */
.whatsapp-btn:hover {
  background-color: var(--brand-coral, #E46B51);
  color: #ffffff;
  transform: translateY(-4px); /* El pequeño salto elegante */
  box-shadow: 0 8px 20px rgba(228, 107, 81, 0.4);
}

/* Ajuste del tamaño del ícono */
.whatsapp-btn i {
  font-size: 1.4rem;
}