/* Variables de colores */
:root {
    --primary: #1B3463; /* Azul marino */
    --secondary: #4A90B0; /* Azul claro */
    --text-dark: #666666; /* Gris oscuro */
    --white: #FFFFFF; /* Blanco */
    --black: #000000; /* Negro */
}

/* Estilos generales */
body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Contenedor principal */
.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Contenido principal */
.inner-page {
    flex: 1;
    margin-top: 80px; /* Ajusta este valor según la altura del encabezado */
    padding: 2rem 0;
}

/* Contenedor principal del contenido */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Banner de la página */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%), url('../assets/images/pattern-light.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: -30px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-banner h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.page-banner h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--white);
}

/* Sección de Sedes */
.sedes-section {
    padding: 60px 0;
    background-color: var(--white);
}

.sedes-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.sedes-intro h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.sedes-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Tarjetas de Sedes */
.sede-card {
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sede-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.sede-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sede-info h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.sede-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-item i {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-top: 5px;
}

.detail-text h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 5px;
}

.detail-text p {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.sede-description {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sede-description h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.sede-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sede-description li {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.sede-description li:before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

.sede-map {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sede-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sección de Contacto */
.contacto-section {
    text-align: center;
    padding: 50px 0;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 30px;
}

.contacto-section h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contacto-section p {
    max-width: 600px;
    margin: 0 auto 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.btn-contacto {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-contacto:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Sección de sedes (original) */
.sedes-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Grid de sedes (original) */
.sedes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Media Queries para el contenido */
@media (max-width: 992px) {
    .sede-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .sede-map {
        height: 350px;
    }

    .sedes-intro h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .sede-card {
        margin-bottom: 40px;
    }

    .sede-info h3 {
        font-size: 1.5rem;
    }

    .sede-map {
        height: 300px;
    }

    .contacto-section {
        padding: 40px 20px;
    }

    .page-banner {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .sede-content {
        padding: 20px;
    }

    .sede-info h3 {
        font-size: 1.3rem;
    }

    .detail-item i {
        font-size: 1.1rem;
    }

    .sede-map {
        height: 250px;
    }

    .contacto-section h2 {
        font-size: 1.5rem;
    }

    .btn-contacto {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .page-banner {
        height: 300px;
    }

    .page-banner h1 {
        font-size: 2rem;
    }
}

/* Estilos del header */
.main-header {
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    transform: translateY(0);
    background-color: var(--primary);
}

.main-header.hidden {
    transform: translateY(-100%);
}

.main-header.transparent {
    background-color: var(--primary);
}

.main-header.transparent .nav-menu a,
.main-header.transparent .social-link,
.main-header.transparent .language-selector {
    color: var(--white);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled .nav-menu a,
.main-header.scrolled .social-link,
.main-header.scrolled .language-selector {
    color: var(--primary);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left img {
    width: 10%;
    height: 1%;
}

.logo-header {
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 25%;
}

.logo-link img {
    width: 40%;
    height: 40%;
}

.logo-link:hover .logo-header {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--primary);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 1;
}

.language-selector {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Menú hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s linear;
}

/* Cuando el menú está activo */
.hamburger.active {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    left: auto;
}

/* Estilos de la X cuando el menú está activo */
.hamburger.active span {
    background: var(--white);
}

/* Animación para convertir en X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Media Queries para diseño responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        margin-right: 30px;
    }

    .social-links {
        display: none;
    }

    .header-right {
        display: flex;
        align-items: center;
    }

    .language-selector {
        order: 1;
    }

    .hamburger {
        order: 2;
    }

    .header-left img {
        width: 20%;
        height: 1%;
    }

    .logo-link img {
        width: 70%;
        height: 70%;
    }

    .main-header {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
    }

    .logo-header {
        height: 30px;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 60%;
        height: 100vh;
        background: rgba(27, 52, 99, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
    }

    .nav-menu.active {
        margin: 0;
        display: flex;
    }

    .nav-menu a {
        color: var(--white);
    }
}

/* Estilos del footer */
.main-footer {
    background: #000;
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto; /* Asegura que el footer esté siempre al final */
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.footer-text h3 {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.footer-text a,
.footer-text p {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-logo img {
    height: 100px;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .footer-container {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-logo {
        order: -1;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-item {
        width: 100%;
        justify-content: center;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

/* Efecto de ondas para el botón de WhatsApp */
.whatsapp-float::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.7;
    animation: ripple 2s ease-out infinite;
    z-index: -1;
}

.whatsapp-float i {
    font-size: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }

    .whatsapp-float i {
        font-size: 25px;
    }
}
