@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #0077b6;
    --secondary: #00b4d8;
    --accent: #48cae4;
    --light: #caf0f8;
    --dark: #03045e;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --gray-light: #f8f9fa;
    --gray: #dee2e6;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 6px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ========== RESET Y BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ========== BODY UNIFICADO ========== */
body {
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-light);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ========== LAYOUT PRINCIPAL ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Contenido principal para que el footer esté abajo */
main {
    flex: 1;
    padding: 2rem;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebd5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ========== HEADER AND NAVIGATION ========== */
header {
    background: linear-gradient(to right, #c9e1ff 0%, #c6defc 40%, #559ce4 70%, #1e3c72 100%);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-container {
    display: block;
    transition: transform 0.3s ease;
    max-width: 200px;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 1.5rem;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    display: block;
}

.nav-links a:hover {
    color: #87CEEB;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.8em;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    color: #333;
    padding: 0.75rem 1.5rem;
    display: block;
    font-weight: 400;
    border-radius: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #0054a6;
    color: white;
}

/* ========== MENÚ HAMBURGUESA ========== */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger:hover {
    color: #87CEEB;
}

/* ========== CONTENT SECTIONS ========== */
/* Title Section - CENTRADO */
.section-title {
    text-align: center;
    margin: 40px 0;
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 600;
}

/* Content Sections */
.section {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-content {
    flex: 1;
    padding: 20px;
    min-width: 300px;
}

.section-image {
    flex: 1;
    padding: 20px;
    min-width: 300px;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
}

h2 {
    margin-bottom: 20px;
    color: #333;
}

p {
    margin-bottom: 15px;
    color: #555;
}

ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* ========== VALORES SECTION ========== */
.valores-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #fff;
}

.valores-image {
    display: flex;
    justify-content: center;
    max-width: 45%;
    padding: 20px 30px 20px 20px;
    align-items: center;
}

.valores-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.valores-content {
    flex: 1;
}

.valores-title {
    color: #333;
    border-bottom: 3px solid #8cc63d;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.valores-accordion {
    margin-top: 20px;
}

.valores-item {
    margin-bottom: 10px;
}

.valores-header {
    background-color: #f5f5f5;
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #8cc63d;
    transition: all 0.3s ease;
}

.valores-header:hover {
    background-color: #e6e6e6;
    transform: translateX(5px);
}

.valores-list {
    list-style-type: none;
    padding-left: 0;
}

.valores-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 30px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.valores-list li:before {
    content: '•';
    color: #8cc63d;
    font-size: 20px;
    position: absolute;
    left: 10px;
}

.toggle-icon {
    font-weight: bold;
    font-size: 20px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #8cc63d;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.valores-header:hover .toggle-icon {
    transform: rotate(90deg);
}

.valores-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0 15px;
    background-color: #f9f9f9;
    border-radius: 0 0 5px 5px;
    transform-origin: top;
    opacity: 0;
}

.valores-body.active {
    max-height: 500px;
    padding: 15px;
    opacity: 1;
    animation: slideDown 0.5s ease forwards;
}

/* ========== SALUD MENTAL SECTION ========== */
.section-content p {
    text-align: justify;
}

.titulo-destacado {
    color: black;
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.boton-container {
    margin-top: 25px;
    text-align: center;
}

.boton-alerta {
    display: inline-block;
    background-color: #2c5aa0;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

.boton-alerta:hover {
    background-color: #1e3d6f;
}

/* ========== FOOTER STYLES ========== */
footer {
    background: #04182e;
    color: #ffffff;
    padding: 30px 0 0;
    margin-top: auto;
    margin-bottom: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 350px 1fr 1fr auto;
    gap: 60px;
    align-items: start;
}

/* SECCIÓN LOGO */
.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.logos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.logo-principal {
    margin-bottom: 20px;
}

.logo-img {
    max-width: 280px;
    height: auto;
    filter: brightness(1.2);
}

.logo-vigilado {
    max-width: 200px;
    height: auto;
    opacity: 0.9;
}

/* SECCIONES PRINCIPALES */
.footer-section h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: 0;
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 14px;
    color: #b3c7d6;
}

.footer-section a {
    color: #b3c7d6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #1976d2;
}

/* CONTACTO SECTION */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contacto-email {
    color: #b3c7d6;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contacto-email i {
    color: #b3c7d6;
}

.sedes-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.sede-item {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.sede-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sede-direccion {
    color: #b3c7d6;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.sede-direccion i {
    color: #b3c7d6;
}

.telefono-item {
    color: #b3c7d6;
    font-size: 16px;
    font-weight: 500;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.telefono-item i {
    color: #b3c7d6;
}

.prq-item {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* BOTÓN PQR */
.btn-pqr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #1976d2, #1565c0);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-pqr:hover {
    background: linear-gradient(45deg, #1565c0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
    color: white;
}

/* INSTITUCIONAL SECTION */
.institucional-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.institucional-links a {
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.institucional-links a:hover {
    border-bottom-color: #1976d2;
    padding-left: 5px;
}

.institucional-links a i {
    color: #b3c7d6;
    font-size: 12px;
}

/* SECCIÓN PAGOS */
.pagos-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.pagos-section h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: 0;
}

.btn-pago-seguro {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #1b5e20, #2e7d32);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #1b5e20;
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-pago-seguro:hover {
    background: linear-gradient(45deg, #0d5016, #1b5e20);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.4);
    color: white;
}

.btn-pago-seguro i {
    color: white;
    font-size: 16px;
}

/* FOOTER BOTTOM */
.footer-bottom {
    background: #02111a;
    text-align: left;
    padding: 12px 40px;
    margin-top: 30px;
    margin-bottom: 0;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.social-icons {
    display: flex;
    gap: 15px;
    position: absolute;
    right: 50%;
    transform: translateX(20px);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #b3c7d6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #1976d2;
    color: white;
    transform: translateY(-2px);
}

/* ========== RESPONSIVE DESIGN ========== */
/* Tablets grandes */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .pagos-section {
        grid-column: 1 / -1;
        align-items: flex-start;
        margin-top: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .social-icons {
        position: static;
        transform: none;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* HEADER RESPONSIVE */
    .hamburger {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(255,255,255,0.1);
        margin-top: 0.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .dropdown-menu a {
        color: white;
        padding: 0.5rem 1.5rem;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(255,255,255,0.2);
    }
    
    /* FOOTER RESPONSIVE */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .pagos-section {
        align-items: center;
    }
    
    .footer-section h3 {
        font-size: 20px;
    }

    .footer-bottom {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 15px;
    }
    
    .btn-pago-seguro {
        padding: 10px 20px;
        font-size: 12px;
    }

    .footer-bottom {
        padding: 15px 15px;
    }
}