:root { 
  --primary:#204680; 
  --white:#fff; 
  --bg:#f5f5f5; 
  --text:#222; 
} 

*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--text);line-height:1.6} 
a{text-decoration:none;color:inherit} 
img{display:block;max-width:100%} 

/* ESTILO TÍTULOS PRINCIPALES */
.page-title {
  text-transform: uppercase;
  text-align: center;
  color: #003366;
  font-size: 64px;
  margin-top: 60px;
  margin-bottom: 40px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}
@media (max-width: 1200px) { .page-title { font-size: 48px; } }
@media (max-width: 992px)  { .page-title { font-size: 40px; } }
@media (max-width: 768px)  { .page-title { font-size: 32px; } }
@media (max-width: 576px)  { .page-title { font-size: 28px; } }

/* TEXTOS DE SECCIÓN */
.section-text-large,
.section-text-medium {
  font-size: 22px;
  line-height: 1.9;
  max-width: 1100px;
  margin: 0 auto 30px auto;
  text-align: justify;
  color: var(--text);
}
@media (max-width: 768px) {
  .section-text-large,
  .section-text-medium { font-size: 18px; max-width: 95%; }
}

/* ===============================
   Subtítulos de página (h2.page-subtitle)
   =============================== */
.page-subtitle {
    font-size: 36px;                /* tamaño consistente con títulos secundarios */
    color: #003366;                 /* color corporativo */
    font-weight: 700;
    margin-top: 60px;               /* espacio arriba */
    margin-bottom: 30px;            /* espacio abajo */
    padding-left: 150px;             /* sangría mínima para alinear con el nav */
    max-width: 1200px;              /* mismo ancho máximo que el contenedor principal */
}

/* Centrado en móviles */
@media (max-width: 768px) {
    .page-subtitle {
        font-size: 28px;
        padding-left: 8px;
    }
}

/* ===============================
   Descripción de las cards
   =============================== */
.card-description {
    text-align: justify;            /* texto justificado */
    margin-top: 12px;               /* margen arriba */
    margin-bottom: 12px;            /* margen abajo */
    line-height: 1.6;               /* mejorar legibilidad */
}

/* NAV */
nav.main-nav { 
  background:var(--primary); 
  color:var(--white); 
  padding:12px 0; 
  position:sticky; 
  top:0; 
  z-index:100; 
} 
.nav-inner { 
  max-width:1200px; 
  margin:0 auto; 
  padding:0 16px; 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
} 
.nav-left, .nav-right {display:flex;gap:20px;align-items:center} 
.logo img {height:80px;} 
nav a {color:var(--white);font-weight:600;font-size:15px} 

/* ======== CARRUSEL ESCALADO DESDE ABAJO ======== */
.carousel {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 70vh;            /* altura mínima del carrusel */
  margin-top: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;     /* alinea contenido al top */
}

/* Cada slide */
.carousel .slide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(50px); /* empieza más abajo */
  transition: opacity 1.5s ease-in-out, transform 1.5s ease;
  pointer-events: none;
  background: #fff;
}

/* Slide activo */
.carousel .slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: translateY(0); /* se mueve a posición original */
  transition: opacity 1.5s ease, transform 1.5s ease;
  z-index: 1;
}

/* Slide activo */
.carousel .slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0); /* se mueve a posición original */
  transition: opacity 1.5s ease, transform 1.5s ease;
}

/* Primera imagen animación al cargar */
.carousel .slide:first-child {
  animation: slideFadeIn 1.5s ease forwards;
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Imágenes dentro del slide */
.carousel img {
  width: auto;
  height: 80vh;          /* altura máxima visible sin recortar texto */
  object-fit: contain;    /* mantiene proporción completa, franjas blancas si es necesario */
  display: block;
  margin: 0 auto;
  transition: transform 1.5s ease, opacity 1.5s ease;
}

/* Imágenes escaladas verticalmente desde abajo */
.carousel img {
  width: 100%;                  
  max-height: 85vh;             /* limita altura máxima */
  object-fit: contain;          
  object-position: center bottom; /* alinea la imagen desde abajo */
  transform: scaleY(0.9);        /* escala vertical 90% */
  transform-origin: bottom;      /* punto de escala: parte inferior */
  display: block;
  transition: transform 0.5s ease;
  background: #fff;
}

/* === EFECTO KEN BURNS === */
.carousel .slide.active img {
  animation: kenburns 8s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.07) translateY(-2%);
    opacity: 1;
  }
}

/* BOTONES NAVEGACIÓN */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .carousel img { max-height: 70vh; object-position: center bottom; }
}

@media (max-width: 768px) {
  .carousel { min-height: 50vh; }
  .carousel img { max-height: 60vh; }
  .carousel-btn { width: 36px; height: 36px; }
}

/* BOTÓN "MÁS INFORMACIÓN" */
.info-btn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0056b3; /* Azul corporativo */
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  opacity: 1;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.info-btn:hover {
  background-color: #003d80; /* Azul más oscuro al pasar el ratón */
  transform: translateX(-50%) scale(1.05);
}


/* FEATURES - CARDS UNIFICADAS */
.feature-card { 
  background:#fff;
  border-radius:10px;
  overflow:hidden; 
  box-shadow:0 6px 18px rgba(0,0,0,0.08); 
  display:flex;
  flex-direction:column; 
  height:380px; /* altura uniforme */
} 
.feature-card img {height:180px;width:100%;object-fit:cover} 
.card-content {padding:16px;flex:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;text-align:center} 
.card-title {font-weight:700;color:#003366;margin-bottom:12px;font-size:22px;text-align:center} 
.card-description {font-size:18px;color:#333;text-align:justify;line-height: 1.6;} 

.features-grid-4 {
  display: grid;
  max-width: 1200px;
  margin: 40px auto;
  gap: 40px;
  grid-template-columns: repeat(4, 1fr);
}
.features-grid-3 {
  display: grid;
  max-width: 1200px;
  margin: 40px auto;
  gap: 40px;
  grid-template-columns: repeat(3, 1fr);
}
.features-grid-2 {
  display: grid;
  max-width: 1200px;
  margin: 40px auto;
  gap: 40px;
  grid-template-columns: repeat(2, 1fr);
}

/* Responsive */
@media (max-width: 1200px) {
  .features-grid-4 {
    grid-template-columns: repeat(3, 1fr);
    }    
}
@media (max-width: 992px) {
  .features-grid-4,
  .features-grid-3,
  .features-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .card-title { font-size: 20px; }
  .card-description { font-size: 16px; }
  .features-grid-4,
  .features-grid-3,
  .features-grid-2 { grid-template-columns: 1fr; }
  .feature-card { height:auto; }
  .feature-card img { height:auto; }
}

/* ABOUT */ 
.about-section {max-width:1000px;margin:40px auto;padding:0} 
.about-section p {margin-bottom:16px;text-align:justify;font-size:18px} 

/* === FOOTER CORPORATIVO UNIFICADO === */
.site-footer {
  background: #003366;       /* color corporativo */
  color: #ffffff;            /* texto blanco */
  padding: 50px 0;
  font-size: 18px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* 3 columnas equilibradas */
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 40px;
}

/* Columnas */
.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Columna 1 — izquierda */
.footer-col:nth-child(1) {
  text-align: left;
}

/* Columna 2 — centrada perfectamente */
.footer-col:nth-child(2) {
  text-align: center;
  justify-self: center; /* mantiene centrado incluso con distinto ancho */
}

/* Columna 3 — derecha alineada visualmente con la 1 */
.footer-col:nth-child(3) {
  text-align: left;
  justify-self: end; /* la fija al extremo derecho */
}

/* Estilos de contenido */
.footer-col h3 {
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 18px;
}

.footer-col p {
  margin-bottom: 10px;
}

.footer-col a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  text-decoration: underline;
  color: #e6f0ff;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr; /* apila las columnas */
    text-align: left;
  }

  .footer-col {
    align-items: flex-start;
  }

  .footer-col:nth-child(2),
  .footer-col:nth-child(3) {
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .site-footer {
    font-size: 16px;
    padding: 40px 0;
  }

  .footer-col h3 {
    font-size: 24px;
  }
}

/* === EFECTO FADE + SOMBRA CORPORATIVA SOLO EN LAS CARDS CON CLASE .fade-card === */
.fade-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.fade-card img {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Al pasar el ratón */
.fade-card:hover {
  transform: translateY(-8px); /* ligera elevación */
  box-shadow: 0 12px 24px rgba(0, 51, 102, 0.3); /* sombra azul corporativa (#003366) */
}

.fade-card:hover img {
  opacity: 0.8;         /* efecto fade */
  transform: scale(1.03); /* ligero zoom */
}

/* === BOTÓN DE INFORMACIÓN EN LAS CARDS (INDEX, SERVICIOS Y FORMACIÓN) === */
.card-info-button {
  display: inline-block;
  background-color: #e6f0ff;      /* Azul claro corporativo */
  color: #003366;                 /* Azul corporativo */
  font-weight: 700;               /* Negrita */
  text-align: center;
  padding: 12px 28px;
  border-radius: 10px;
  margin-top: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  font-size: 18px;
  width: fit-content;
  align-self: center;             /* Centrado dentro del card-content */
}

/* Efecto hover (pulsación visual) */
.card-info-button:hover {
  background-color: #003366;      /* Azul corporativo al pasar el ratón */
  color: #fff;                    /* Texto blanco */
  transform: translateY(-4px);    /* Movimiento suave hacia arriba */
  box-shadow: 0 8px 16px rgba(0, 51, 102, 0.3); /* Sombra azul */
}

/* === boton para la página de cookies === */
.btn-primary {
  background-color: #003366;
  color: #ffffff;
  border: none;
  border-radius: 47px;
  padding: 20px 60px;
  font-size: 32px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #004080;
}

/* === Estilos específicos para la página de cookies === */
.policy-text-small {
  font-size: 24px;        /* Más pequeño que formación (que usa 48px aprox.) */
  line-height: 1.6;       /* Espaciado cómodo para lectura */
  color: var(--color-text-dark);
  text-align: justify;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.policy-text-small h2,
.policy-text-small h3 {
  color: var(--color-primary);
  margin-top: 40px;
  font-weight: 600;
}

.policy-text-small ul {
  margin: 10px 0 20px 40px;
}

.policy-text-small li {
  margin-bottom: 10px;
}

.cookie-table-wrapper {
  overflow-x: auto;
  margin: 40px auto;
  max-width: 1200px;
}

.cookie-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-collapse: collapse;
  border: 1px solid #ccc;
}

.cookie-table div {
  border: 1px solid #ccc;
  padding: 15px;
  font-size: 20px;
}

.cookie-table .table-header {
  background-color: #003366;
  color: white;
  font-weight: bold;
}

.disable-cookies-guide {
  max-width: 1200px;
  margin: 60px auto;
  font-size: 24px;
  color: var(--color-text-dark);
  text-align: justify;
  padding: 0 20px;
}

.disable-cookies-guide a {
  color: #003366;
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 80px auto;
}

.btn-primary {
  background-color: #003366;
  color: #ffffff;
  border: none;
  border-radius: 47px;
  padding: 20px 60px;
  font-size: 32px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #004080;
}

/* Ajuste de la tercera columna del footer (Políticas) */
.site-footer .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.site-footer .footer-col:nth-child(3) {
  text-align: left !important;
  padding-left: 100px; /* ajusta este valor hasta que se alinee visualmente con “Contacto” del nav */
}

@media (max-width: 992px) {
  .site-footer .footer-col:nth-child(3) {
    padding-left: 0 !important;
  }
}

/* =============================
   SECCIÓN CONTACTO - INTEGRADA
   ============================= */

.contact-section {
  padding: 60px 20px;
  background: #f5f5f5; /* Gris suave corporativo */
  font-family: 'Inter', sans-serif;
  color: var(--text, #333);
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center; /* flex-start; */
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap; /* responsive */
}

/* Formulario */
.contact-form {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  font-size: 16px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #003366;
}

.contact-form textarea {
  resize: none;
}

/* Checkbox */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

/* Botón enviar */
.btn-submit {
  background: #003366; /* corporativo */
  color: #fff;
  border: none;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background: #00264d;
  transform: translateY(-2px);
}

/* Caja lateral de información */
.contact-info-box {
  flex: 1;
  background: #003366;
  color: #fff;
  padding: 25px;
  font-size: 16px;
  line-height: 1.6;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.contact-info-box a {
  color: #fff;
  text-decoration: none;
}

.contact-info-box a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info-box {
    width: 100%;
  }
}

/* ===========================================
   BOTONES CORPORATIVOS UNIFICADOS
   =========================================== */

/* === BOTÓN SUPERIOR DERECHO (Ir al Campus Virtual) === */
.campus-top-button {
  position: absolute;
  top: 120px;
  right: 8%;
  background-color: #003366;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 30px;
  transition: background-color 0.4s ease, transform 0.3s ease;
  z-index: 10;
}

.campus-top-button:hover {
  background-color: #002244;
  transform: scale(1.05);
}

/* === BOTONES DENTRO DE TARJETAS Y SECCIONES === */
.card-info-button,
.volver-button {
  display: inline-flex; /* permite usar iconos alineados */
  align-items: center;
  gap: 8px; /* espacio entre icono y texto */
  background-color: #003366;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 40px;
  transition: background-color 0.4s ease, transform 0.3s ease;
}

.card-info-button:hover,
.volver-button:hover {
  background-color: #002244;
  transform: scale(1.05);
}

/* Animación suave para la flecha en el botón Volver */
.volver-button:hover::before {
  transform: translateX(-4px);
}

.volver-button::before {
  content: "←";
  display: inline-block;
  transition: transform 0.3s ease;
}

/* === VERSIÓN RESPONSIVE === */
@media (max-width: 1024px) {
  .campus-top-button {
    right: 4%;
  }
}

@media (max-width: 768px) {
  .campus-top-button {
    position: static;
    display: block;
    margin: 20px auto;
    text-align: center;
  }
}

   /* Clase específica para Formación */
    .features-grid-formation {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
      max-width: 1200px;
      margin: 40px auto;
    }

    /* Asegurar que todas las cards tengan altura uniforme */
    .features-grid-formation .feature-card {
      display: flex;
      flex-direction: column;
      height: 420px; /* altura uniforme para todas las cards */
    }

    .features-grid-formation .card-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      text-align: center;
      padding: 16px;
    }

       /* RESPONSIVE */
@media (max-width: 1024px) {
  .campus-button-top {
    margin-right: 60px;   /* reduce la distancia en pantallas medianas */
  }
}

@media (max-width: 768px) {
  .campus-button-top {
    justify-content: center;   /* centra el botón en móviles */
    margin-right: 0;
    margin-top: 16px;
  }
}

/* Contenedor del botón superior derecho */
.campus-button-top {
  display: flex;
  justify-content: flex-end;   /* lo alinea a la derecha */
  padding: 20px 5%;            /* separa de los bordes de forma proporcional */
  box-sizing: border-box;
}

/* Ajustes del botón */
.campus-button-top .card-info-button {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 40px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover del botón */
.campus-button-top .card-info-button:hover {
  background-color: #16335e;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .campus-button-top {
    justify-content: center;  /* centra el botón en móviles */
    padding: 16px 0;
  }
}

/* BOTÓN SUPERIOR DERECHO - CAMPUS */
.campus-button-top {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;      /* separación desde el nav */
  margin-right: 120px;   /* ajusta la distancia para alinearlo con el menú derecho */
}

.campus-button-top .card-info-button {
  background-color: #003366;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 40px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.campus-button-top .card-info-button:hover {
  background-color: #002244;
  transform: scale(1.03);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .campus-button-top {
    margin-right: 60px;
  }
}

@media (max-width: 768px) {
  .campus-button-top {
    justify-content: center;
    margin-right: 0;
    margin-top: 16px;
  }
}

 /* === SECCIÓN PRINCIPAL === */
    .formacion-section {
      max-width: 1200px;
      margin: 60px auto;
      display: flex;
      align-items: center; /* CENTRA verticalmente texto e imagen */
      justify-content: space-between;
      gap: 40px;
    }

    .formacion-section .text-column {
      flex: 1;
    }

     /* Mismo estilo que section-text-large */
    .formacion-section .text-column p {
      font-size: 1.1rem; /* Igual que .section-text-large */
      line-height: 1.7;
      color: #333;
      text-align: justify;
      margin: 1em 0;
    }

    .formacion-section .media-column {
      flex: 0 0 40%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center; /* CENTRA imagen y botón verticalmente */
      gap: 20px;
    }

    .formacion-section img {
      width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      display: block;
    }
