: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);
}

/* --- HERO SLIDER --- */
.hero-slider {
    position: relative;
    width: 100%;
    /* Estas tres propiedades son la clave para que el fondo se vea bien */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Dependiendo de tu diseño, puedes darle una altura mínima */
    min-height: 95vh; 
    overflow: hidden;
}

.slider-wrapper {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el contenido en pantallas ultra anchas */
    padding: 0 5%; /* Reducimos ligeramente el padding lateral para dar más aire */
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px; /* Reducimos el espacio directo entre texto e imagen */
    width: 100%;
    max-width: 1200px; /* Evita que el texto y la imagen se sigan separando en pantallas grandes */
    margin: 0 auto; /* Centra el bloque de contenido en el slider */
}

/* Texto a la izquierda */
.slide-text {
    z-index: 10;
}

.slide-text h2 {
    font-size: 3.8rem;
    color: var(--blue-primary);
    line-height: 1.1;
    margin-bottom: 25px;
}

.slide-text h2 span {
    display: block;
    color: var(--blue-primary);
    font-weight: 400; /* Estilo Andes: título grueso y delgado */
}

.slide-text p {
    font-size: 1.15rem;
    color: #666;
    max-width: 500px;
    margin-bottom: 35px;
}

/* Botones estilo referencia */
.slide-btns {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-secondary {
    font-weight: 600;
    color: var(--blue-primary);
    transition: var(--transition);
}

.btn-secondary:hover {
    color: var(--red-accent);
}

/* --- COMPOSICIÓN CREATIVA (LADO DERECHO) --- */
.slide-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* La forma orgánica de fondo (Blob) */
.blob-shape {
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
    opacity: 0.15; /* Opacidad sutil como en la referencia */
    animation: morphing 10s infinite alternate;
}

@keyframes morphing {
    0% { border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; }
    100% { border-radius: 70% 30% 50% 50% / 50% 60% 40% 60%; }
}

/* Imagen del niño / recorte */
.slide-visual img {
    position: relative;
    z-index: 2;
    height: 120%;
    width: auto;
    object-fit: contain;
    /* Efecto para que parezca un recorte flotante */
    filter: drop-shadow(10px 20px 30px rgba(0,0,0,0.1));
    transform: scale(0.9);
    transition: transform 1.2s ease;
}

.slide.active .slide-visual img {
    transform: scale(1.05); /* Pequeño zoom al entrar */
}

/* Dots de navegación */
.slider-dots {
    position: absolute;
    bottom: 100px;
    left: 28%;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #cbd5e0;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--blue-primary);
    width: 30px;
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .slide-text h2 { font-size: 2.5rem; }
    .slide-text p { margin: 0 auto 30px; }
    .slide-btns { justify-content: center; }
    .slide-visual { height: 350px; margin-top: 30px; }
    .slider-dots { left: 50%; transform: translateX(-50%); }
}

/* Pseudo-elemento para colocar el logotipo de referencia con opacidad controlada */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Genki logo original.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.15; /* Opacidad sutil solicitada en el banner */
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 51, 117, 0.8), rgba(17, 26, 54, 0.9));
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 750px;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--gold-accent);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background-color: var(--red-accent);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(229, 36, 33, 0.4);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--gold-accent);
    box-shadow: 0 4px 15px rgba(212, 154, 23, 0.4);
    transform: translateY(-2px);
}

/* --- SECCIÓN FILOSOFÍA Y CÍRCULOS INTERACTIVOS --- */
.filosofia-section {
    padding: 80px 10%;
    background-color: var(--white);
}

.section-title {
    font-size: 2.2rem;
    color: var(--blue-primary);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--red-accent);
}

/* Contenedor de círculos */
.circulos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.circulo-item {
    width: 100%;
    background-color: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border-left: 5px solid transparent;
}

/* Resetear flecha nativa de details */
.circulo-trigger {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    list-style: none;
    transition: var(--transition);
}
.circulo-trigger::-webkit-details-marker {
    display: none;
}

/* Estilos de color para los disparadores circulares */
.bg-blue { background-color: var(--blue-primary); }
.bg-red { background-color: var(--red-accent); }
.bg-gold { background-color: var(--gold-accent); }

/* Simulación de elemento circular integrado de forma creativa */
.circulo-trigger::before {
    content: '';
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 20px;
    background-color: rgba(255, 255, 255, 0.25);
    border: 2px dashed var(--white);
    flex-shrink: 0;
    transition: var(--transition);
}

.circulo-item:hover .circulo-trigger::before {
    transform: rotate(90deg);
}

/* Contenido desplegable */
.circulo-content {
    padding: 30px;
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-top: none;
    animation: fadeInDown 0.4s ease;
}

.circulo-content h3 {
    color: var(--blue-primary);
    margin-bottom: 10px;
}

/* Estado abierto de los elementos interactivos */
.circulo-item[open] {
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}
.circulo-item[open] .circulo-trigger.bg-blue { border-left-color: var(--gold-accent); }
.circulo-item[open] .circulo-trigger.bg-red { border-left-color: var(--blue-primary); }
.circulo-item[open] .circulo-trigger.bg-gold { border-left-color: var(--red-accent); }


/* --- OFERTA EDUCATIVA --- */
.oferta-section {
    background-color: var(--light-bg);
    padding: 80px 5%;
}

.grid-oferta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    /* --- NUEVAS PROPIEDADES PARA CONTROLAR EL ANCHO --- */
    max-width: 1200px; /* Ajusta este valor al ancho de tu contenedor estándar (ej. 1140px o 1200px) */
    margin: 0 auto;    /* Centra la cuadrícula en la pantalla */
}

.card-nivel {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
    border-top: 5px solid var(--blue-primary);
}

.card-nivel:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card-content h3 {
    color: var(--blue-primary);
    margin-bottom: 12px;
}

.card-link {
    color: var(--gold-accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}



/* Estilos principales del Banner */
.banner-japan {
    position: relative;
    width: 100%;
    background: linear-gradient(to right, #9e0000 0%, #dd2825 50%, #f12d26 100%);
    color: #ffffff;
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    overflow: visible; /* Permite que el Torii sobresalga por arriba y abajo si lo deseas */
    padding: 20px 0;
  }
  
  .banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 0 20px;
  }
  
  /* Sección de Texto */
  .banner-content {
    text-align: center;
  }
  
  .banner-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 -10px 0;
    letter-spacing: -0.5px;
  }
  
  .banner-text {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #ffffff;
  }
  
  .banner-text strong {
    font-weight: 800;
  }
  
  /* Botón CTA */
  .banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Espacio entre el icono y el texto */
    
    background-color: #39c24a; /* Verde oficial de WhatsApp */
    color: #FFFFFF;            /* Texto e icono blancos */
    
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    
    padding: 9px 24px;
    border-radius: 10px;       /* Bordes redondeados estilo botón moderno */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  /* Efecto al pasar el cursor */
  .banner-btn:hover {
    background-color: #39c24a; /* Verde un poco más oscuro al hacer hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  }
  
  /* Tamaño del ícono */
  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }
  
  .banner-btn:hover {
    background-color: #193375;
    transform: translateY(-2px);
  }
  
  /* Sección de Imagen */
  .banner-image {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .banner-image img {
    height: 280px; /* Ajusta la altura para que sobresalga ligeramente como en la imagen */
    width: auto;
    object-fit: contain;
    margin-top: -40px; /* Desplazamiento hacia arriba para el efecto sobresaliente */
    margin-bottom: -20px;
  }
  
  /* Responsivo para pantallas pequeñas */
  @media (max-width: 768px) {
    .banner-container {
      flex-direction: column;
      text-align: center;
    }
    
    .banner-image img {
      height: 320px;
      margin: 30;
    }
  }



/* --- SECCIÓN DE BLOG --- */
.blog-section {
    padding: 80px 5%;
    background-color: var(--white);
}

.grid-blog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
}

.blog-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.blog-card-content {
    padding: 25px;
}

.blog-date {
    display: block;
    font-size: 0.8rem;
    color: var(--gold-accent);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.blog-card-content h3 {
    color: var(--blue-primary);
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-content p {
    font-size: 0.95rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.blog-link {
    color: var(--red-accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.blog-link:hover {
    color: var(--blue-primary);
}

/* --- 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; }
}
