:root {
    --blue-primary: #193375; /* Azul corporativo */
    --red-accent: #e52421;    /* Rojo corporativo */
    --gold-accent: #d49a17;   /* Dorado corporativo */
    --dark-text: #2d3748;     /* Gris oscuro para legibilidad */
    --light-bg: #f7fafc;      /* Fondo gris premium */
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--blue-primary);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--gold-accent);
}

.top-bar .info-left span {
    margin-right: 20px;
}

.top-bar .cta-right a {
    background-color: var(--red-accent);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.top-bar .cta-right a:hover {
    background-color: var(--white);
    color: var(--blue-primary);
}

/* Alineación vertical perfecta del ícono con el texto */
.info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espacio entre el ícono y el texto */
  }
  
  /* Cambia el color de los íconos */
  .info-item .icon {
    color: #d49a17; /* Modifica este color según tu paleta */
    flex-shrink: 0;
  }



/* --- ESTILOS GENERALES Y ESCRITORIO --- */
.has-dropdown {
    position: relative;
}

.nav-item-wrapper {
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: none; /* Oculto en computadora */
    cursor: pointer;
    padding-left: 5px;
    font-size: 10px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    list-style: none;
    min-width: 160px;
    z-index: 1000;
}

.dropdown-menu li a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
}

/* Hover solo para pantallas grandes */
@media (min-width: 769px) {
    .has-dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* --- ADAPTACIÓN PARA MÓVILES (Pantallas pequeñas) --- */
@media (max-width: 768px) {
    .dropdown-toggle {
        display: inline-block; /* Aparece la flecha en móviles */
    }

    .dropdown-menu {
        position: static; /* Cambia de flotante a bloque normal */
        box-shadow: none;
        background-color: #f9f9f9; /* Un tono diferente para distinguir el submenú */
        padding-left: 20px; /* Indentación para denotar jerarquía */
        width: 100%;
    }

    /* Clase que activará JavaScript al hacer clic */
    .dropdown-menu.is-active {
        display: block;
    }
}

/* --- HEADER & NAVIGATION --- */
.header {
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--blue-primary);
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red-accent);
    transition: var(--transition);
}

.nav-item:hover::after {
    width: 100%;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--blue-primary);
    border-radius: 2px;
    transition: var(--transition);
}


/* Flecha hacia abajo al lado de Oferta Educativa */
.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor; /* Toma el mismo color del texto */
    transition: transform 0.3s ease;
}

/* Rotación de la flecha al pasar el mouse */
.dropdown:hover .arrow-down {
    transform: rotate(180deg);
}

/* Posicionamiento del item principal */
.nav-menu li.dropdown {
    position: static; /* Permite que el submenú ocupe todo el ancho de la ventana */
}

/* Submenú Desplegable a Ancho Completo (Mega Menu) */
.dropdown-menu-full {
    display: none;
    position: absolute;
    top: 100%;                      /* Aparece justo debajo de la barra de navegación */
    left: 0;
    width: 100vw;                   /* Ocupa el 100% del ancho de pantalla */
    background-color: var(--white);
    border-top: 3px solid var(--gold-accent); /* Detalle de acento dorado como en tu top-bar */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 70px 0;
}


/* Puente invisible para mantener el hover */
.dropdown-menu-full::before {
    content: "";
    position: absolute;
    top: -50px; /* Ajusta este valor según el tamaño del "hueco" */
    left: 0;
    width: 100%;
    height: 50px; /* Debe ser el mismo valor que el 'top' pero en positivo */
    background-color: transparent; /* Se mantiene invisible */
}


/* Mostrar el submenú al pasar el mouse por Oferta Educativa */
.dropdown:hover .dropdown-menu-full {
    display: block;
}

/* Estilos de la lista interna dentro del menú full-width */
.dropdown-full-content {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;         /* Elementos apilados verticalmente al centro */
    align-items: center;
    gap: 2px;
}

/* Estilo de las opciones del menú */
.dropdown-full-content li a {
    color: var(--blue-primary);            /* Texto en blanco o var(--gold-accent) según preferencia */
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition, all 0.3s ease);
    display: inline-block;
}

/* Efecto hover sobre cada opción */
.dropdown-full-content li a:hover {
    color: var(--gold-accent);      /* Cambia a acento dorado al pasar el cursor */
    transform: scale(1.05);
}


/* Inicia apartado Inscripciones */
/* Variables de color y tipografía */
:root {
  --color-primary: #0b1a30;       /* Azul marino profundo */
  --color-accent: #d49a17;        /* Amarillo/Dorado principal */
  --color-red-accent: #e52421;    /* Rojo resaltado */
  --color-green-btn: #39c24a;     /* Verde botón CTA */
  --color-green-hover: #219653;
  --color-text-dark: #333333;
  --font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

/* Contenedor Principal */
.admissions-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: var(--font-family);
  box-sizing: border-box;
}

/* Encabezado */
.admissions-header {
  text-align: center;
  margin-bottom: 40px;
}

.title-main {
  color: var(--color-accent);
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
}

.subtitle {
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: -12px;
}

/* Grid de Pasos (4 Columnas) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon-wrapper {
  width: 180px;
  height: 180px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-text {
  font-size: 0.88rem;
  color: var(--color-text-dark);
  line-height: 1.35;
  margin: 0;
}

.text-accent {
  color: var(--color-red-accent);
}

.text-navy {
  color: var(--color-primary);
}

.phone-number {
  font-weight: 800;
  color: var(--color-primary);
}

/* Banner CTA Azul */
.cta-banner {
  background: linear-gradient(to right, #0C2340, #193375); /* Degradado lineal de izquierda a derecha */
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 50px 0 50px;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.cta-content {
  max-width: 50%;
  padding-bottom: 30px;
  z-index: 2;
}

.cta-title {
  color: var(--color-accent);
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.cta-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 25px 0;
}

.cta-subtitle em {
  font-style: italic;
  font-weight: 700;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-green-btn);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background-color 0.25s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.cta-button:hover {
  background-color: #d49a17;
  transform: translateY(-2px);
}

.whatsapp-icon {
  width: 25px;
  height: 28px;
}

/* Área de Imagen Derecha */
.cta-image-wrapper {
  width: 50%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  z-index: 1;
}

.cta-person-img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Responsividad (Tablets y Móviles) */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .cta-banner {
    flex-direction: column;
    padding: 30px 20px 0 20px;
    text-align: center;
  }

  .cta-content {
    max-width: 100%;
    padding-bottom: 20px;
  }

  .cta-image-wrapper {
    width: 80%;
    justify-content: center;
  }
}

@media (max-width: 550px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .title-main {
    font-size: 2.1rem;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .cta-image-wrapper {
    width: 100%;
  }
}
/* --- Termina apartado Inscripciones --- */


/* --- CONFIGURACIÓN GENERAL DEL FOOTER --- */
.custom-footer {
    background-color: #0b1a30; /* Azul oscuro del fondo */
    color: #ffffff;
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    padding: 60px 20px 20px 20px;
    font-size: 14px;
}

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

/* Títulos de las columnas */
.custom-footer h3 {
    color: #cca03a; /* Tono dorado/amarillo de la imagen */
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Opción 1: Cambiar el color directo a la clase del SVG */
.icon-svg {
    color: #d49a17; /* Cambia este valor al color que necesites */
    transition: color 0.3s ease;
}


/* --- COLUMNA 1: CONTACTO --- */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-info .icon {
    margin-right: 15px;
    font-size: 18px;
    color: #ffffff;
    display: inline-block;
    padding-top: 2px;
}

.contact-info p {
    margin: 0;
}

.contact-info a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #cca03a;
}

/* --- COLUMNA 2: LINKS --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #cca03a;
    transform: translateX(5px);
}

/* --- COLUMNA 3: FORMULARIO --- */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    background-color: transparent;
    border: 1px solid #ffffff;
    border-radius: 4px;
    padding: 10px 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: #8fa0b5; /* Tono grisáceo para los placeholders */
}

.footer-form input:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: #cca03a;
}

.footer-form textarea {
    resize: none;
}

.btn-submit {
    background-color: #cca03a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background-color: #e52421;
}

/* --- COLUMNA 4: REDES SOCIALES --- */
.follow-text {
    margin-bottom: 20px;
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Color por defecto de todos los íconos */
.social-icon {
    color: #ffffff; /* O el color que prefieras */
    transition: color 0.3s ease;
    display: inline-block;
}

/* Cambiar color al pasar el cursor (Hover) */
.social-icon:hover {
    color: #ff4757; /* Color deseado al hacer hover */
}


.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: transparent;
    border: none; /* Ajustable si prefieres el aro dorado completo */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.18); /* Agranda el ícono un 18% */
}


/* --- NUEVO: ESTILOS PARA EL BOTÓN DE VOLVER ARRIBA --- */
.footer-top-link-container {
    text-align: right;
    margin: 0px 0 0px 0; /* Espacio arriba y abajo */
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: #e52421; /* Rojo */
    color: #ffffff; /* Texto blanco */
    text-decoration: none;
    padding: 10px 23px;
    border-radius: 50px; /* Bordes muy redondeados */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-to-top .icon {
    font-size: 18px;
    font-weight: normal;
}

.back-to-top:hover {
    background-color: #d49a17; /* Tono de dorado al hover */
    box-shadow: 0 0 10px rgba(204, 160, 58, 0.5); /* Efecto de brillo sutil */
    transform: translateY(-2px); /* Pequeño salto hacia arriba */
}

/* --- PIE DE PÁGINA (COPYRIGHT) --- */
.footer-bottom {
    margin-top: 50px;
    border-top: 1px solid #b32d2d; /* La delgada línea roja de la captura */
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: #ffffff;
    opacity: 0.9;
}

/* --- RESPONSIVIDAD (MEDIA QUERIES) --- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .custom-footer {
        padding: 40px 15px 20px 15px;
    }
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .hamburger { display: flex; }
    .nav-menu {
        position: absolute; top: 90px; left: -100%; width: 100%;
        height: calc(100vh - 90px); background-color: var(--white);
        flex-direction: column; align-items: center; padding-top: 40px;
        gap: 30px; transition: var(--transition); box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    .nav-menu.active { left: 0; }
    .hero-content h1 { font-size: 2.2rem; }
    .social-links { flex-direction: column; gap: 10px; padding: 0 10%; }
}


/* Contenedor principal a la derecha */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 65%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaciado entre botones */
    z-index: 9999; /* Asegura que esté por encima de otros elementos */
  }
  
  /* Estilo base de los botones */
  .social-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 80px; /* Ancho que sobresale de la pantalla */
    height: 60px; /* Altura del botón */
    padding-left: 18px; /* Espaciado interno para centrar el icono visualmente */
    border-radius: 30px 0 0 30px; /* Bordes redondeados solo del lado izquierdo */
    text-decoration: none;
    color: #ffffff;
    font-size: 35px; /* Tamaño del icono */
    box-shadow: -3px 4px 10px rgba(0, 0, 0, 0.15); /* Sombra suave idéntica a la imagen */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  /* Efecto hover sutil al pasar el mouse */
  .social-btn:hover {
    transform: translateX(5px); /* Se desplaza ligeramente a la izquierda */
    box-shadow: -5px 6px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Color oficial de WhatsApp */
  .social-btn.whatsapp {
    background-color: #39c24a;
  }
  
  /* Color oficial de Facebook */
  .social-btn.facebook {
    background-color: #0b84ee;
  }

  /* Color oficial de TikTok */
.social-btn.tiktok {
    background-color: #2c2c2c;
  }

/* --- SUBMENÚS EN VISTA MÓVIL --- */
@media (max-width: 768px) {
    .nav-menu { overflow-y: auto; padding-bottom: 40px; }
    .nav-menu li.dropdown { width: 100%; text-align: center; }
    /* En pantallas táctiles el hover no aplica: el submenú se abre con la clase .open */
    .dropdown:hover .dropdown-menu-full { display: none; }
    .dropdown:hover .arrow-down { transform: none; }
    .dropdown.open .dropdown-menu-full {
        display: block;
        position: static;
        width: 100%;
        padding: 15px 0;
        margin-top: 10px;
        box-shadow: none;
        background-color: var(--light-bg, #f7fafc);
    }
    .dropdown.open .arrow-down { transform: rotate(180deg); }
    .dropdown-menu-full::before { display: none; }
    .dropdown-full-content { gap: 12px; }
    .dropdown-full-content li a { font-size: 1.1rem; }
}
