/* ======================================================
   ESTILOS PRINCIPALES - Cursos Construcción 2025
   Archivo: assets/style.css (Actualizado)
   ====================================================== */

/* =============== Variables y Reset =============== */
:root {
  --primario: #004080;
  --secundario: #0099cc;
  --fondo-claro: #f8f9fa;
  --gris: #6c757d;
  --blanco: #ffffff;
  --negro: #000000;
  --sombra: 0 4px 8px rgba(0, 0, 0, 0.1);
  --fuente: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  font-family: var(--fuente);
  background-color: var(--fondo-claro);
  color: var(--negro);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

h1, h2, h3 {
  color: var(--primario);
}

/* ===================== HEADER PROFESIONAL ===================== */

/* ===== CONTENEDOR GENERAL DEL HEADER (barra superior fija) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 1rem 0;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* === HEADER FIJO CON FONDO DINÁMICO === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  padding: 1rem 0;
  transition: background-color 0.4s ease, padding 0.3s ease;
}

.header.scrolled {
  background-color: #002b5b; /* Azul elegante al hacer scroll */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

/* === INTERIOR DEL HEADER === */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* === LOGO === */
.logo img {
  height: 48px;
}

/* === NAVEGACIÓN DESKTOP === */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: #00d4ff;
}

/* === BOTÓN DESTACADO (Contacto) === */
.btn-nav {
  background-color: #00d4ff;
  color: #002b5b;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: bold;
}

.btn-nav:hover {
  background-color: #00b8e0;
  color: #fff;
}

/* === BOTÓN HAMBURGUESA === */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 4px;
  z-index: 1100;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* === RESPONSIVE === */
/* MODO MÓVIL (ajustes responsive) */
@media (max-width: 820px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: auto;
    background-color: #002b5b; /* Color uniforme del header */
    width: 240px;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  .navbar.open {
    max-height: 500px;
  }

  .navbar ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin: 0;
  }

  .navbar a {
    width: 100%;
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
  }

  .btn-nav {
    width: 100%;
    text-align: center;
    background: #00d4ff;
    color: #002b5b;
    font-weight: bold;
    border-radius: 20px;
    padding: 0.5rem;
  }
}



/* ============ SECCIÓN HERO ============ */
.hero {
  position: relative;
  padding: 7rem 1.5rem;
  background-color: #0A192F;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(10,25,47,0.6), rgba(0,0,0,0.8)),
              url('img/fondo-hero.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: auto;
  padding: 3rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.hero h1 .azul {
  color: #1DA1F2;
}

.hero-sub {
  font-size: 1.1rem;
  color: #eee;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-benefits {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 700px;
  color: #f1f1f1;
}

.hero-benefits li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-whatsapp-btn:hover {
  background-color: #1ebe57;
  transform: scale(1.05);
}

.hero-whatsapp-btn i {
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-content {
    padding: 2rem;
  }

  .hero-benefits {
    font-size: 0.95rem;
  }
}



/* ========= SECCIÓN DE BENEFICIOS INTERACTIVOS ========= */

/* Fondo claro para diferenciar esta sección */
.features-section {
  background-color: #f8f9fa; /* Gris claro suave para resaltar */
  padding: 4rem 0;           /* Espaciado arriba y abajo */
}

/* Estilos generales para cada tarjeta de beneficio */
.feature-card {
  background-color: #ffffff;           /* Fondo blanco */
  border-radius: 16px;                 /* Bordes redondeados suaves */
  padding: 2rem 1.5rem;                /* Espaciado interno */
  box-shadow: 0 0 0 transparent;       /* Sin sombra inicial */
  transition: all 0.3s ease;           /* Transición suave en hover */
  height: 100%;                        /* Altura completa para alineación uniforme */
}

/* Efecto hover: levanta la tarjeta y aplica sombra */
.feature-card:hover {
  transform: translateY(-8px);         /* Eleva la tarjeta */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

/* Íconos principales dentro de las tarjetas */
.feature-icon {
  font-size: 3rem;             /* Tamaño grande del ícono */
  color: #0A192F;              /* Azul corporativo oscuro */
  transition: color 0.3s ease; /* Suaviza el cambio de color */
}

/* Al hacer hover, el ícono cambia de color */
.feature-card:hover .feature-icon {
  color: #1DA1F2; /* Azul más vivo al interactuar */
}

/* Títulos dentro de la tarjeta */
.feature-card h5 {
  color: #0A192F;    /* Color de texto corporativo */
  margin-top: 1rem;  /* Espacio sobre el título */
}

/* Texto descriptivo de cada beneficio */
.feature-card p {
  color: #555;       /* Gris oscuro para buena lectura */
  margin-bottom: 0;  /* Elimina margen inferior innecesario */
  font-size: 0.95rem;
  line-height: 1.5;
}


/* ==== Flip Card Cursos Adaptado Desktop + Móvil ==== */
.course-section {
  background-color: #f0f8ff; /* fondo celeste claro */
  padding: 60px 20px;        /* espaciado arriba y abajo */
}

.course-section h2 {
  color: #0a192f;           /* mismo color oscuro del título */
  font-weight: bold;        /* negrita */
  font-size: 2rem;          /* tamaño grande para visibilidad */
  text-align: center;       /* centrado */
  margin-bottom: 40px;      /* espacio inferior */
}


/* Contenedor principal de la tarjeta */
.course-card {
  position: relative;
  width: 100%;
  height: 370px;
  perspective: 1000px;
  cursor: pointer;
  margin-bottom: 2rem;
  
}


/* Contenedor interno para el efecto 3D */
.course-card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

/* Activar giro completo */
.course-card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* Ambas caras */
.course-card .card-front,
.course-card .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  backface-visibility: hidden;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.6s ease;
  overflow: hidden;
}

/* Cara frontal */
.course-card .card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: rotateY(0deg);
}

.course-card .card-front img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.course-card .card-front h5 {
  margin-top: auto;
  font-size: 1rem;
  text-align: center;
}

/* Cara trasera */
.course-card .card-back {
  transform: rotateY(180deg);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.course-card .card-back h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.course-card .card-back p {
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

/* Botón base común */
.btn-brochure {
  display: inline-block;
  padding: 10px 20px;
  margin: 0.4rem 0;
  background-color: #002e5b;
  color: #ffffff;
  border-radius: 25px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease;
  font-size: 0.9rem;
}

.btn-brochure:hover {
  background-color: #005299;
}

/* Botón WhatsApp */
.whatsapp-btn {
  background-color: #25D366;
}

.whatsapp-btn:hover {
  background-color: #1EBE5D;
}

.whatsapp-btn i {
  margin-right: 8px;
  font-size: 1.2em;
  vertical-align: middle;
}

/* Interactividad: FLIP en escritorio */
@media (hover: hover) and (pointer: fine) {
  .course-card:hover .card-inner {
    transform: rotateY(180deg);
  }
}

/* ==== MÓVILES ==== */
@media (max-width: 767px) {
  .course-card {
    height: 370px;
    perspective: 1000px;
  }

  .course-card .card-inner {
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
  }

  .course-card .card-front,
  .course-card .card-back {
    position: absolute;
    transform: rotateY(0deg);
    backface-visibility: hidden;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }

  .course-card .card-back {
    transform: rotateY(180deg);
  }

  .course-card.flipped .card-inner {
    transform: rotateY(180deg);
  }
}

/* --- SECCIÓN DE CERTIFICADOS (CARRUSEL) --- */
.certificados-section {
  padding: 60px 20px;
  background-color: #f7f7f7;
  text-align: center;
}


.certificados-section .section-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: #0a192f;
  margin-bottom: 2rem;
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel img {
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
}


/* Botones */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0a192f;
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-btn {
    font-size: 1.5rem;
    padding: 0 10px;
  }
}







/* === ESTILOS PARA SECCIÓN DE PLANES DE INSCRIPCIÓN === */

.planes-inscripcion {
  background: linear-gradient(135deg, #e3f2fd, #ffffff); /* Fondo claro degradado */
  padding: 5rem 2rem;
  text-align: center;
}

.planes-inscripcion h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0a192f;
  margin-bottom: 3rem;
}

/* === Estilo glass + neumorfismo para tarjetas === */
.planes-inscripcion .card1 {
  background: rgba(255, 255, 255, 0.2); /* fondo translúcido */
  backdrop-filter: blur(12px); /* efecto glass */
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(25, 181, 233, 0.926);
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.1),
              -4px -4px 12px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}
.planes-inscripcion .card1:hover {
  transform: scale(1.03);
  box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.2),
              -6px -6px 14px rgba(255, 255, 255, 0.6);
}


/* === Estilo glass + neumorfismo para tarjetas === */
.planes-inscripcion .card {
  background: linear-gradient(135deg, #ffef8a, #ff7b54, #ff2d2d); /* degradado fuerte amarillo → naranja → rojo */
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  border: 5px solid #ff0000; /* borde rojo brillante */
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6), 
              0 0 50px rgba(255, 165, 0, 0.5); /* rojo + naranja */
  transition: all 0.3s ease;
  position: relative;
  animation: pulsoOferta 1.3s infinite alternate; /* efecto dinámico */
}

.planes-inscripcion .card:hover {
  transform: scale(1.07);
  box-shadow: 0 0 35px rgba(255, 0, 0, 0.8), 
              0 0 60px rgba(255, 200, 0, 0.6);
}

/* Animación de pulso */
@keyframes pulsoOferta {
  from {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), 
                0 0 40px rgba(255, 165, 0, 0.4);
  }
  to {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(255, 0, 0, 0.8), 
                0 0 60px rgba(255, 200, 0, 0.6);
  }
}


/* Título de cada tarjeta */
.planes-inscripcion h4 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

/* Descripción corta */
.planes-inscripcion p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}
.planes-inscripcion .price1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 1.5rem;
}
/* Precio */
.planes-inscripcion .price {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

/* === Botón principal (WhatsApp) === */
.planes-inscripcion .btn-wsp {
  background: #25d366; /* verde WhatsApp */
  color: white;
  border: none;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.planes-inscripcion .btn-wsp i {
  font-size: 1.3rem;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.planes-inscripcion .btn-wsp:hover {
  background: #128c7e;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 30px rgba(18, 140, 126, 0.5);
}

.planes-inscripcion .btn-wsp:hover i {
  transform: rotate(15deg) scale(1.2);
}

/* === Botón secundario estilo outline === */
.planes-inscripcion .btn-outline {
  border: 2px solid #007bff;
  color: #007bff;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.planes-inscripcion .btn-outline:hover {
  background: #007bff;
  color: white;
  transform: scale(1.05);
}

/* === Responsive en pantallas móviles === */
@media (max-width: 768px) {
  .planes-inscripcion h2 {
    font-size: 2rem;
  }

  .planes-inscripcion h4 {
    font-size: 1.5rem;
  }

  .planes-inscripcion .card {
    margin-bottom: 2rem;
  }

  .planes-inscripcion .btn-wsp,
  .planes-inscripcion .btn-outline {
    font-size: 0.95rem;
    padding: 0.65rem 1.2rem;
  }
}



/* --- SECCIÓN DE PREGUNTAS FRECUENTES --- */
.faq-section {
  background-color: #f0f8ff; /* azul muy claro */
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: #0a192f;
  margin-bottom: 2rem;
}

/* Contenedor de cada pregunta-respuesta */
.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  overflow: hidden;
  transition: all 0.4s ease; /* Transición general */
}

/* Botón de pregunta */
.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: bold;
  font-size: 1.1rem;
  color: #0a192f;
  cursor: pointer;
  padding: 15px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: #0077cc;
}

/* Flechita ▼ que rota cuando se activa */
.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg); /* Gira la flecha hacia arriba */
}

/* Contenido de respuesta: colapsado por defecto */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.5s ease, padding 0.3s ease;
  color: #333;
}

/* Cuando está activa: se despliega */
.faq-item.active .faq-answer {
  max-height: 200px; /* Ajusta según el tamaño de tu contenido */
  padding-bottom: 15px;
}


/* =============== CTA Final =============== */
.cta-final {
  background-color: var(--primario);
  color: var(--blanco);
  text-align: center;
  padding: 3rem 2rem;
}

/* Botón especial para WhatsApp */
.btn-whatsapp {
  background-color: #25D366; /* Verde oficial de WhatsApp */
  color: #fff;
  font-weight: bold;
  border-radius: 50px;
  padding: 1rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: 0.3s;
}

.btn-whatsapp:hover {
  background-color: #1ebe57; /* Verde más oscuro al pasar el mouse */
}

/* =============== Footer =============== */
.footer {
  background-color: #001f3f;
  color: var(--blanco);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

/* =============== Responsive =============== */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    align-items: center;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-cta {
    padding: 0.8rem 1.5rem;
  }
}
