/* ==================== IMPORTS Y VARIABLES ==================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&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;
    
    /* Variables para acordeón verde */
    --green-primary: #7cb342;
    --green-secondary: #8bc34a;
    --green-accent: #81c784;
    --green-light: #c8e6c9;
    --green-dark: #689f38;
    --green-border: #7cb342;
    
    /* Variables adicionales para el footer */
    --text-footer: #b3c7d6;
    --bg-dark: #04182e;
    --bg-darker: #02111a;
    --whatsapp: #25d366;
    --whatsapp-hover: #1ebd5a;
    --blue-600: #1976d2;
    --blue-700: #1565c0;
    --blue-800: #0d47a1;
    --green-700: #1b5e20;
    --green-800: #2e7d32;
    --gradient-blue: linear-gradient(45deg, #1976d2, #1565c0);
    --gradient-green: linear-gradient(45deg, #1b5e20, #2e7d32);
    --container-wide: 1400px;
    --spacing-xs: 8px;
    --spacing-sm: 15px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
}

/* ==================== RESET Y BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--gray-light);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==================== WHATSAPP FLOTANTE ==================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    font-size: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background-color: var(--whatsapp-hover);
}

.whatsapp-float img {
    filter: brightness(0) invert(1);
}

/* ==================== HEADER Y NAVEGACIÓN ==================== */
header {
    background: linear-gradient(to right, #c9e1ff 0%, #c6defc 40%, #559ce4 70%, #1e3c72 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-container {
    display: block;
    transition: var(--transition);
    max-width: 200px;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo img {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

/* ==================== NAVEGACIÓN PRINCIPAL ==================== */
.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: var(--transition);
    padding: 0.5rem 0;
    display: block;
}

.nav-links a:hover {
    color: #87CEEB;
}

/* ==================== DROPDOWN MENU ==================== */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.8em;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    font-weight: 400;
    border-radius: 0;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--primary);
    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;
}

/* ==================== SECCIONES PRINCIPALES ==================== */
#valores.values {
    padding: 60px 0;
    background-color: white;
}

#valores.values h1 {
    text-align: center;
    color: var(--dark);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.section {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.section:first-child {
    flex-direction: row-reverse;
}

.section:nth-child(even):not(:first-of-type) {
    flex-direction: row-reverse;
}

.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: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.section-image img:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.02);
}

.section-content h2 {
    color: var(--dark);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.section-content p {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==================== CONTENEDOR DE VALORES ACORDEÓN ==================== */
.valores-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.valores-image {
    display: none; /* Ocultar completamente la imagen */
}

.valores-content {
    width: 100%;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px;
}

.valores-title {
    color: var(--dark);
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.valores-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background-color: var(--green-primary);
}

/* ==================== ACORDEÓN ESTILO IMAGEN ==================== */
.valores-item {
    margin-bottom: 2px;
    border-radius: 0;
    overflow: hidden;
}

.valores-header {
    background-color: #f5f5f5;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--green-primary);
    transition: var(--transition);
    position: relative;
}

.valores-header:hover {
    background-color: #e8f5e8;
}

.valores-header.active {
    background-color: #e8f5e8;
}

.valores-header strong {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
}

.toggle-icon {
    width: 24px;
    height: 24px;
    background-color: var(--green-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: var(--transition);
}

.valores-header:hover .toggle-icon {
    background-color: var(--green-dark);
}

.valores-header.active .toggle-icon {
    background-color: var(--green-dark);
    transform: rotate(45deg);
}

.valores-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    background-color: #fafafa;
    opacity: 0;
}

.valores-body.active {
    max-height: 200px;
    padding: 20px;
    opacity: 1;
}

.valores-body p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* ==================== FOOTER PRINCIPAL ==================== */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 0;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: grid;
    grid-template-columns: 350px 1fr 1fr auto;
    gap: 60px;
    align-items: start;
}

/* ==================== SECCIÓN LOGO FOOTER ==================== */
.footer-logo {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.logos {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.logo-principal {
    margin-bottom: var(--spacing-md);
}

.logo-img {
    max-width: 280px;
    height: auto;
    filter: brightness(1.2);
}

.logo-vigilado,
.logo-uspec {
    max-width: 200px;
    height: auto;
    opacity: 0.9;
}

/* ==================== SECCIONES FOOTER ==================== */
.footer-section h3 {
    color: var(--text-light);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-transform: none;
    letter-spacing: 0;
}

.footer-section p {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
    font-size: 14px;
    color: var(--text-footer);
}

.footer-section a {
    color: var(--text-footer);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--blue-600);
}

/* ==================== CONTACTO SECTION ==================== */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contacto-email {
    color: var(--text-footer);
    font-size: 14px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.contacto-email i {
    color: var(--text-footer);
}

.sedes-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.sede-item {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    align-items: flex-start;
}

.sede-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sede-direccion {
    color: var(--text-footer);
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.sede-direccion i {
    color: var(--text-footer);
}

.telefono-item {
    color: var(--text-footer);
    font-size: 16px;
    font-weight: 500;
    margin: var(--spacing-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.telefono-item i {
    color: var(--text-footer);
}

.prq-item {
    margin-top: var(--spacing-md);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

/* ==================== BOTONES FOOTER ==================== */
.btn-pqr {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--gradient-blue);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    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, var(--blue-700), var(--blue-800));
    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: var(--spacing-xs);
}

.institucional-links a:hover {
    border-bottom-color: var(--blue-600);
    padding-left: 5px;
}

.institucional-links a i {
    color: var(--text-footer);
    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: var(--text-light);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-transform: none;
    letter-spacing: 0;
}

.btn-pago-seguro {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-green);
    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 var(--green-700);
    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, var(--green-700));
    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: var(--bg-darker);
    text-align: left;
    padding: 12px var(--spacing-xl);
    margin-top: var(--spacing-lg);
    color: var(--text-light);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    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: var(--text-footer);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--blue-600);
    color: white;
    transform: translateY(-2px);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets grandes */
@media (max-width: 1024px) {
    .valores-container {
        margin: 40px auto;
        padding: 0 20px;
    }
    
    .valores-content {
        padding: 30px;
    }
    
    .section {
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
    
    .pagos-section {
        grid-column: 1 / -1;
        align-items: flex-start;
        margin-top: var(--spacing-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        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);
    }
    
    /* ==================== SECCIONES RESPONSIVE ==================== */
    .section,
    .section:nth-child(even),
    .section:first-child {
        flex-direction: column;
        text-align: center;
    }
    
    .section-content,
    .section-image {
        min-width: 100%;
        padding: 10px;
    }
    
    #valores.values h1 {
        font-size: 2rem;
    }
    
    .section-content h2 {
        font-size: 1.5rem;
    }
    
    .valores-content {
        padding: 25px;
    }
    
    /* ==================== FOOTER RESPONSIVE ==================== */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
        padding: 0 var(--spacing-md);
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .pagos-section {
        align-items: center;
    }
    
    .footer-section h3 {
        font-size: 18px;
    }

    .footer-bottom {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* Móviles */
@media (max-width: 576px) {
    .navbar {
        padding: 0 0.5rem;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    #valores.values {
        padding: 40px 0;
    }
    
    #valores.values h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .section-content h2 {
        font-size: 1.3rem;
    }
    
    .section-content,
    .section-image {
        padding: 5px;
    }
    
    .valores-container {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .valores-content {
        padding: 20px;
    }
    
    .valores-title {
        font-size: 1.5rem;
    }
    
    .valores-header {
        padding: 15px;
    }
    
    .valores-body {
        padding: 0 15px;
    }
    
    .valores-body.active {
        padding: 15px;
    }
    
    .footer-content {
        padding: 0 var(--spacing-sm);
    }
    
    .btn-pago-seguro {
        padding: 10px var(--spacing-md);
        font-size: 12px;
    }

    .footer-bottom {
        padding: var(--spacing-sm);
    }
    
    .logo-img {
        max-width: 200px;
    }

    .logo-vigilado,
    .logo-uspec {
        max-width: 150px;
    }

    .whatsapp-float {
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Móviles pequeños */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    #valores.values h1 {
        font-size: 1.5rem;
    }
    
    .section-content h2 {
        font-size: 1.2rem;
    }
    
    .valores-container {
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .valores-content {
        padding: 15px;
    }
    
    .valores-title {
        font-size: 1.3rem;
    }
}