* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
    --primary: #1a365d;
    --secondary: #2a7de1;
    --accent: #c53030;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
}
body {
    background-color: var(--light);
    color: #333;
    line-height: 1.6;
}
.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header y navegación */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 40px;
}
.logo-container h1 {
    font-size: 1.5rem;
    color: var(--primary);
    white-space: nowrap;
}
.nav-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-grow: 1;
    justify-content: flex-end;
}
/* NUEVO: Contenedor del menú hamburguesa */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1001;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
}
.mobile-menu .nav-links {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 20px;
}
.mobile-menu .nav-links a {
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 8px;
    display: block;
    transition: background 0.3s;
}
.mobile-menu .nav-links a:hover {
    background: var(--secondary);
    color: white;
}
.mobile-menu .btn {
    margin-top: 20px;
    width: 80%;
    max-width: 250px;
}
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
}
/* Botón hamburguesa para móviles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger div {
    width: 100%;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
}
/* Mostrar menú hamburguesa en móviles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-content {
        display: none; /* Ocultar el menú original */
    }
}
/* Estilos para el menú hamburguesa activo */
.mobile-menu.active {
    display: flex;
}
.hamburger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active div:nth-child(2) {
    opacity: 0;
}
.hamburger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
/* Navegación original (para pantallas grandes) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-links a:hover {
    color: var(--secondary);
}
/* HERO SECTION COMPLETA - IMAGEN A LO LARGO */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    max-height: 1000px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* ⬅️ Esto es clave: empuja el título arriba y el párrafo abajo */
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
}
.texto-largo {
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    margin: 0 0 20px 0;
    word-wrap: break-word;
    max-width: 90%;
    margin-top: 25px;
}
.hero-footer {
    margin-top: 20px;
}
.parrafo {
    font-size: 1.4rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    max-width: 80%;
    
    white-space: nowrap;
    word-wrap: break-word;
}
/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary), #1e60c9);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.btn:hover {
    background: linear-gradient(135deg, #1e60c9, var(--secondary));
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.btn:hover::before {
    left: 100%;
}
.btn:active {
    transform: translateY(-1px);
}
.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}
.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}
.btn-full {
    width: 50%;
}
/* Secciones generales */
section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}
.section-title p {
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}
/* ========== CARRUSEL QUÉNES SOMOS ========== */
.about-carousel {
    position: relative;
    margin-top: 40px;
}
.carousel-slides {
    position: relative;
    min-height: 500px;
}
.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-in;
}
.carousel-slide.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    z-index: 10;
    pointer-events: none;
    padding: 0 20px;
}
.carousel-btn {
    background: rgba(45, 90, 161, 0.9);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 11;
}
.prev-btn {
    position: relative;
    left: -280px;
}
.next-btn {
    position: relative;
    right: -280px;
}
.carousel-btn:hover {
    background: #2d5aa1;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 15px 0;
}
.carousel-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.carousel-indicator.active {
    background: #2d5aa1;
    transform: scale(1.2);
    border-color: #1a365d;
}
.carousel-indicator:hover {
    background: #2d5aa1;
    transform: scale(1.1);
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 20px;
}
.about-text h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.parrafo-servi{
    text-align: justify;
}

/* ⭐ JUSTIFICACIÓN INTELIGENTE: Solo si el texto es lo suficientemente largo */
.about-text p {
    text-align: justify;
    hyphens: auto;
    word-spacing: 0.05em;
    letter-spacing: 0.01em;
    orphans: 2;
    widows: 2;
    display: inline-block; /* Esto evita que el navegador "estire" palabras en textos cortos */
    min-width: 80%; /* Asegura que el bloque tenga suficiente ancho para justificar sin forzar */
}

/* ⚠️ Para evitar problemas en móviles */
@media (max-width: 768px) {
    .about-text p {
        text-align: left;
        display: block;
        min-width: auto;
    }
}
.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}
.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}
/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}
.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 650px;
}
.service-card:hover {
    transform: translateY(-10px);
}
.service-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}
.camara-img {
    object-fit: cover;
    background-color: #f8f9fa;
    padding: 0;
    display: block;
}
.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
    min-height: 60px;
    display: flex;
    align-items: center;
}
.service-content p {
    margin-bottom: 15px;
    flex-shrink: 0;
}
.service-content ul {
    padding-left: 20px;
    margin-top: 10px;
    flex-grow: 1;
    margin-bottom: 20px;
}
.service-content li {
    margin-bottom: 5px;
}
.service-content .btn {
    margin-top: auto;
    flex-shrink: 0;
}
/* Bienestar Social */
.bienestar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}
.bienestar-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}
.bienestar-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    min-height: 60px;
    display: flex;
    align-items: center;
}
.bienestar-card p {
    margin-bottom: 15px;
    flex-shrink: 0;
}
.bienestar-card ul {
    padding-left: 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}
.bienestar-card li {
    margin-bottom: 8px;
}
.bienestar-card .btn {
    margin-top: auto;
    flex-shrink: 0;
}
.donaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}
.donacion-item {
    background-color: #f0f7ff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: transform 0.3s;
}
.donacion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Sedes Regionales */
.sedes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    align-items: stretch;
}
.sede-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
}
.sede-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.sede-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.sede-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.sede-card:hover .sede-img {
    transform: scale(1.05);
}
.sede-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.sede-card:hover .sede-overlay {
    opacity: 0.4;
}
.sede-card h3 {
    margin: 20px 15px 10px;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}
.sede-card p {
    margin: 0 15px 15px;
    color: #666;
    font-size: 0.95rem;
}
.sede-card .btn {
    margin: 0 15px 20px;
    margin-top: auto;
}
/* Formulario de contacto */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
}
.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: 15px;
    margin-top: 5px;
}
.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.2);
    outline: none;
}
textarea.form-control {
    min-height: 150px;
    resize: vertical;
}
/* Aliados */
.aliados-section {
    padding: 80px 0;
    background-color: #f0f7ff;
}
.aliados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}
.aliado-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 350px;
}
.aliado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-color: #2d5aa1;
}
.aliado-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    padding: 15px;
}
.aliado-logo img {
    max-height: 120px;
    object-fit: contain;
}
.aliado-card h3 {
    color: #1a365d;
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.3;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.aliado-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
    align-items: center;
}
/* ========== SECCIÓN DE VIDEOS - FORMATO VERTICAL 9/11 COMPACTO ========== */
.videos-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    scroll-margin-top: 80px;
}
.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    position: relative;
    height: auto;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
/* CONTENEDOR DE VIDEO VERTICAL 9/11 COMPACTO */
.video-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9/11;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
}
.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
}
/* Overlay compacto */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 1;
    border-radius: 12px 12px 0 0;
}
.video-player-container.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}
.video-player-container:hover .video-overlay {
    background: rgba(0, 0, 0, 0.3);
}
/* Botón de play compacto */
.play-button {
    width: 45px;
    height: 45px;
    background: rgba(45, 90, 161, 0.95);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.play-button:hover {
    background: #2d5aa1;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.play-button.playing {
    opacity: 0;
    pointer-events: none;
}
/* Duración del video */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}
/* Contenido del video más compacto */
.video-content {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}
.video-content h3 {
    color: #1a365d;
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
}
.video-content p {
    color: #555;
    line-height: 1.4;
    flex-grow: 1;
    font-size: 0.8rem;
    margin: 0;
}
/* Indicador de reproducción */
.playing-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #2d5aa1;
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    display: none;
    backdrop-filter: blur(10px);
}
.video-player-container.playing .playing-indicator {
    display: block;
}
/* Estados de carga */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.7);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e53e3e;
    text-align: center;
    padding: 15px;
    background: rgba(0,0,0,0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
}
/* Map section */
.map-simple-container {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e6f4ff 100%);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 
        0 20px 50px rgba(74, 144, 226, 0.18),
        0 8px 25px rgba(42, 125, 225, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-image: linear-gradient(135deg, #4a90e2, #2a7de1, #1e6fd9) 1;
    position: relative;
    overflow: hidden;
}
/* Efecto de borde resplandeciente azul mejorado */
.map-simple-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        #4a90e2, 
        #2a7de1, 
        #1e6fd9, 
        #2a7de1, 
        #4a90e2);
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}
@keyframes borderGlow {
    0% {
        opacity: 0.5;
        filter: blur(10px);
        background-position: 0% 50%;
    }
    100% {
        opacity: 0.8;
        filter: blur(15px);
        background-position: 100% 50%;
    }
}
/* Efecto de partículas azules sutiles */
.map-simple-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 125, 225, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(30, 111, 217, 0.04) 0%, transparent 50%);
    border-radius: 20px;
    pointer-events: none;
}
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 12px 35px rgba(42, 125, 225, 0.25),
        0 4px 20px rgba(74, 144, 226, 0.15),
        0 2px 8px rgba(30, 111, 217, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    background: linear-gradient(135deg, #fafcff 0%, #f5f9ff 100%);
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.03) 0%, 
        rgba(42, 125, 225, 0.05) 50%, 
        rgba(30, 111, 217, 0.02) 100%);
    border-radius: 12px;
    pointer-events: none;
}
.map-container:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 
        0 20px 50px rgba(42, 125, 225, 0.35),
        0 8px 30px rgba(74, 144, 226, 0.25),
        0 4px 15px rgba(30, 111, 217, 0.2),
        0 0 0 1px rgba(74, 144, 226, 0.4);
}
#map {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
}
/* Efecto adicional de brillo al hacer hover en el contenedor principal */
.map-simple-container:hover::before {
    animation-duration: 2s;
    opacity: 0.9;
}
/* Social icons */
.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.whatsapp {
    background: #25D366;
}
.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.header-social {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}
.header-social .social-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.footer-social .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}
/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: white;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}
/* Logo images */
.logo-img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    object-fit: contain;
}
/* ========== RESPONSIVE DESIGN ========== */
/* Dispositivos grandes (1200px en adelante) */
@media (max-width: 1200px) {
    .texto-largo {
        font-size: 3rem;
    }
    .parrafo {
        font-size: 1.3rem;
    }
    .nav-content {
        gap: 20px;
    }
    .nav-links {
        gap: 15px;
    }
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    .prev-btn {
        left: -250px;
    }
    .next-btn {
        right: -250px;
    }
    .about-container {
        gap: 40px;
    }
    .about-image img {
        height: 350px;
    }
    .videos-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }
    .play-button {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    .hero-content {
        padding: 50px 20px;
    }
}
/* Tablets (992px) */
@media (max-width: 992px) {
    .hero {
        height: 70vh;
    }
    .texto-largo {
        font-size: 2.7rem;
    }
    .parrafo {
        font-size: 1.2rem;
    }
}
/* Tablets pequeñas (768px) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        align-items: center;
        padding: 10px 0;
    }
    .logo-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 10px;
        gap: 5px;
    }
    .logo-container h1 {
        font-size: 1.2rem;
        white-space: normal;
        text-align: center;
        margin: 0;
        flex-grow: 1;
        order: 1;
    }
    .logo-izquierda {
        order: 0;
        width: 40px;
        height: 40px;
        margin-right: 5px;
    }
    .logo-derecha {
        order: 2;
        width: 40px;
        height: 40px;
        margin-left: 5px;
    }
    .nav-content {
        display: none;
    }
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    .texto-largo {
        font-size: 2.3rem;
        margin-top: 25px;
    }
    .parrafo {
        font-size: 1.1rem;
        max-width: 600px;
    }
    .hero-content {
        padding: 30px 20px;
    }
    .hero-footer {
        margin-bottom: 40px;
    }
    section {
        padding: 60px 0;
    }
    .header-social {
        display: none;
    }
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.6rem;
    }
    .social-icons {
        gap: 8px;
    }
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .carousel-controls {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
        justify-content: center;
        gap: 40px;
        padding: 0;
        max-width: 100%;
    }
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        position: static;
        left: auto;
        right: auto;
    }
    .carousel-indicators {
        margin-top: 20px;
        padding: 10px 0;
    }
    .about-text {
        text-align: center;
        padding: 15px;
    }
    .about-image img {
        height: 250px;
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-image {
        order: -1;
    }
    .aliados-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .aliado-logo {
        width: 100px;
        height: 100px;
    }
    .aliado-card {
        padding: 25px 20px;
    }
    .map-simple-container {
        padding: 25px;
        border-radius: 16px;
        margin: 0 10px;
    }
    .map-simple-container::before {
        border-radius: 18px;
    }
    .map-container {
        border-radius: 10px;
    }
    #map {
        height: 350px;
    }
    .sedes-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    .sede-img-container {
        height: 180px;
    }
    .videos-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    .video-player-container {
        aspect-ratio: 9/11;
    }
    .video-content {
        padding: 10px;
    }
    .video-content h3 {
        font-size: 0.95rem;
    }
    .video-content p {
        font-size: 0.75rem;
    }
    .play-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .video-duration {
        font-size: 0.6rem;
        padding: 2px 5px;
    }
}
/* Móviles (576px) */
@media (max-width: 576px) {
    .hero {
        height: 50vh;
        min-height: 350px;
    }
    .texto-largo {
        font-size: 2rem;
    }
    .parrafo {
        font-size: 1rem;
        max-width: 500px;
    }
    .hero-content {
        padding: 25px 15px;
    }
    .hero-footer {
        margin-bottom: 30px;
    }
    .sedes-container {
        grid-template-columns: 1fr;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .aliados-grid {
        grid-template-columns: 1fr;
    }
    .aliado-card {
        padding: 20px 15px;
    }
    .videos-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .video-player-container {
        aspect-ratio: 9/11;
    }
    .video-content {
        padding: 12px;
    }
    .video-content h3 {
        font-size: 0.95rem;
    }
    .video-content p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    .play-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .video-duration {
        font-size: 0.6rem;
        padding: 2px 5px;
    }
}
/* Móviles pequeños (480px) */
@media (max-width: 480px) {
    .logo-container h1 {
        font-size: 1.3rem;
    }
    .nav-links {
        gap: 10px;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    .hero {
        height: 45vh;
        min-height: 300px;
    }
    .texto-largo {
        font-size: 1.8rem;
        margin-top: 15px;
    }
    .parrafo {
        font-size: 0.95rem;
        max-width: 400px;
    }
    .hero-content {
        padding: 20px 15px;
    }
    .hero-footer {
        margin-bottom: 25px;
    }
    .carousel-controls {
        gap: 30px;
        margin: 15px auto;
    }
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    .carousel-indicators {
        gap: 10px;
        margin-top: 15px;
    }
    .carousel-indicator {
        width: 12px;
        height: 12px;
    }
    .about-text {
        padding: 10px;
    }
    .about-image img {
        height: 200px;
    }
    .videos-container {
        gap: 15px;
        max-width: 280px;
    }
    .video-player-container {
        aspect-ratio: 9/11;
    }
    .video-content {
        padding: 10px;
    }
    .video-content h3 {
        font-size: 0.9rem;
    }
    .video-content p {
        font-size: 0.7rem;
    }
    .play-button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .video-duration {
        font-size: 0.55rem;
        padding: 2px 4px;
    }
    .playing-indicator {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
     .map-simple-container {
        padding: 20px 15px;
        border-radius: 14px;
    }
    #map {
        height: 300px;
    }
    .map-container:hover {
        transform: translateY(-2px);
    }
}
/* Ajustes para tablets en landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .videos-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
    }
}
/* Ajustes para pantallas grandes */
@media (min-width: 1600px) {
    .videos-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}
/* Sección de Sedes Disponibles en Servicios */
.service-sedes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}
.sedes-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.sedes-title i {
    color: var(--secondary);
}
.sedes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.sede-tag {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #d1e0ff;
    transition: all 0.3s ease;
}
.sede-tag:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-1px);
}

.map-legend h3 {
    font-weight: 600;
}
.map-legend a {
    color: #2d5aa1;
    text-decoration: none;
}
.map-legend a:hover {
    text-decoration: underline;
}
