/* ============================================
   NOSOTROS.CSS - COMPLETAMENTE RESPONSIVE
   Paleta de colores: #203E79, #D4B896, grises
============================================ */

/* Variables CSS */
:root {
    --primary-blue: #203E79;
    --secondary-blue: #4A6FA5;
    --accent-gold: #D4B896;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #CCCCCC;
    --dark-gray: #666666;
    --darker-gray: #333333;
}

/* Reset responsive */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--darker-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: bold;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* ============================================
   HEADER RESPONSIVE
============================================ */
header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: bold;
    color: var(--accent-gold);
}

.logo img {
    height: clamp(30px, 8vw, 40px);
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: clamp(0.85rem, 2.2vw, 1rem);
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a.active {
    color: var(--accent-gold);
    font-weight: bold;
}

.nav-links a.contact-btn {
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: clamp(0.4rem, 1.5vw, 0.6rem) clamp(0.8rem, 2.5vw, 1.2rem);
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid var(--accent-gold);
}

.nav-links a.contact-btn:hover {
    background: transparent;
    color: var(--accent-gold);
}

/* Menu móvil mejorado */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

/* ============================================
   MAIN CONTENT RESPONSIVE
============================================ */
main {
    margin-top: 0;
}

/* Page Headers Responsive */
.page-header {
    background: var(--primary-blue);
    color: #BCD0F7;
    padding: clamp(4rem, 10vw, 6rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 4rem);
    padding-top: calc(clamp(4rem, 10vw, 6rem) + clamp(60px, 15vw, 80px));
    text-align: center;
    margin-top: 0;
}

.page-header-content h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--accent-gold);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--white);
}

/* ============================================
   HISTORIA SECTION RESPONSIVE
============================================ */
.historia {
    padding: clamp(3rem, 8vw, 4rem) clamp(1rem, 4vw, 2rem);
    background: var(--white);
}

.historia-container {
    max-width: 1200px;
    margin: 0 auto;
}

.historia-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 3rem);
    align-items: center;
}

.historia-image {
    position: relative;
    order: -1;
}

.historia-image img {
    width: 100%;
    height: clamp(250px, 50vw, 400px);
    object-fit: cover;
    border-radius: 10px;
}

.year-badge {
    position: absolute;
    top: clamp(-15px, -4vw, -20px);
    right: clamp(-15px, -4vw, -20px);
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: clamp(0.8rem, 2.5vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 50%;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(212, 184, 150, 0.4);
}

.historia-text h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.historia-text p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.estadisticas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: clamp(1rem, 4vw, 2rem);
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: clamp(0.8rem, 2vw, 1rem);
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-5px);
}

.stat-item:hover .stat-number,
.stat-item:hover .stat-label {
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: bold;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--dark-gray);
    margin-top: 0.5rem;
}

/* ============================================
   VALORES SECTION RESPONSIVE
============================================ */
.valores-section {
    padding: clamp(3rem, 8vw, 4rem) clamp(1rem, 4vw, 2rem);
    background: var(--light-gray);
}

.valores-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    margin-bottom: clamp(2rem, 6vw, 3rem);
    color: var(--primary-blue);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.valor-card {
    background: var(--white);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
    transition: all 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.valor-card.mision {
    border-top: 4px solid var(--primary-blue);
}

.valor-card.vision {
    border-top: 4px solid var(--accent-gold);
}

.valor-card.valores {
    border-top: 4px solid var(--secondary-blue);
}

.valor-icon {
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.valor-icon img {
    width: clamp(25px, 6vw, 30px);
    height: clamp(25px, 6vw, 30px);
}

.valor-content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.valor-content p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.valor-content ul {
    list-style: none;
    padding-left: 0;
}

.valor-content li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--dark-gray);
    font-size: clamp(0.85rem, 2.2vw, 1rem);
}

.valor-content li:before {
    content: "✓";
    color: var(--accent-gold);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.valor-content li strong {
    color: var(--primary-blue);
}

/* ============================================
   VENTAJAS SECTION (NUEVA)
============================================ */
.ventajas {
    padding: clamp(3rem, 8vw, 4rem) clamp(1rem, 4vw, 2rem);
    background: var(--white);
}

.ventajas-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ventajas-container h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.ventajas-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--dark-gray);
    margin-bottom: clamp(2rem, 6vw, 3rem);
    font-style: italic;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.ventaja-item {
    background: var(--light-gray);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.ventaja-item:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(32, 62, 121, 0.2);
    border-color: var(--accent-gold);
}

.ventaja-item:hover h3,
.ventaja-item:hover p {
    color: var(--white);
}

.ventaja-icon {
    font-size: clamp(2.5rem, 6vw, 3rem);
    margin-bottom: 1rem;
    display: block;
}

.ventaja-item h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.ventaja-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ============================================
   COMPROMISO SECTION RESPONSIVE
============================================ */
.compromiso {
    padding: clamp(3rem, 8vw, 4rem) clamp(1rem, 4vw, 2rem);
    background: var(--primary-blue);
    color: var(--white);
}

.compromiso-container {
    max-width: 1200px;
    margin: 0 auto;
}

.compromiso-content h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 3rem);
}

.compromiso-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.compromiso-item {
    display: flex;
    gap: clamp(0.8rem, 2vw, 1rem);
    align-items: flex-start;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.compromiso-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.compromiso-number {
    background: var(--accent-gold);
    color: var(--primary-blue);
    width: clamp(35px, 8vw, 40px);
    height: clamp(35px, 8vw, 40px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
}

.compromiso-item h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.compromiso-item p {
    color: var(--white);
    opacity: 0.9;
    line-height: 1.6;
}

/* ============================================
   FOOTER RESPONSIVE
============================================ */
footer {
    background: #1D2638;
    color: var(--white);
    padding: clamp(2rem, 6vw, 3rem) 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 3rem);
}

.footer-info h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: clamp(35px, 10vw, 40px);
    height: clamp(35px, 10vw, 40px);
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.social-links img {
    width: clamp(18px, 5vw, 20px);
    height: clamp(18px, 5vw, 20px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(1rem, 4vw, 2rem);
    text-align: center;
}

.footer-column h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.footer-column a:hover {
    color: var(--accent-gold);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 2rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.footer-legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* ============================================
   WHATSAPP RESPONSIVE
============================================ */
.whatsapp-float {
    position: fixed;
    bottom: clamp(15px, 4vw, 20px);
    right: clamp(15px, 4vw, 20px);
    z-index: 1000;
    animation: bounce 2s infinite;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: clamp(0.8rem, 3vw, 1rem) clamp(1rem, 4vw, 1.5rem);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 2.2vw, 1rem);
}

.whatsapp-float a:hover {
    background: #1DAA50;
    transform: scale(1.05);
}

.whatsapp-float img {
    width: clamp(20px, 6vw, 24px);
    height: clamp(20px, 6vw, 24px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   NAVEGACIÓN MÓVIL MEJORADA
============================================ */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: var(--primary-blue);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    .nav-links.mobile-active {
        right: 0;
    }
    
    .nav-links a {
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        width: 80%;
        text-align: center;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a.contact-btn {
        margin-top: 1rem;
        padding: 1rem 2rem;
        border-radius: 25px;
        background: var(--accent-gold);
        color: var(--primary-blue);
        font-weight: bold;
        border: none;
        width: auto;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    /* Historia móvil */
    .historia-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .historia-image {
        order: 0;
    }
    
    .estadisticas {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Valores móvil */
    .valores-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Ventajas móvil */
    .ventajas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Compromiso móvil */
    .compromiso-items {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .compromiso-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* WhatsApp móvil */
    .whatsapp-float a span {
        display: none;
    }
    
    .whatsapp-float a {
        border-radius: 50%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    /* Header extra pequeño */
    .logo {
        font-size: 1.1rem;
    }
    
    .logo img {
        height: 28px;
    }
    
    /* Secciones extra compactas */
    .historia,
    .valores-section,
    .ventajas,
    .compromiso {
        padding: 2.5rem 0.8rem;
    }
    
    .estadisticas {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        text-align: center;
    }
    
    .stat-item {
        padding: 0.8rem 0.5rem;
        margin: 0 auto;
        max-width: none;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .year-badge {
        top: -10px;
        right: -10px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Ventajas extra pequeño */
    .ventaja-icon {
        font-size: 2.2rem;
    }
    
    .ventaja-item {
        padding: 1.2rem;
    }
}

/* ============================================
   MEJORAS PARA TABLET
============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .historia-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .historia-image {
        order: 0;
    }
    
    .valores-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .ventajas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compromiso-items {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr;
        text-align: left;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ============================================
   DESKTOP GRANDE
============================================ */
@media (min-width: 1025px) {
    .historia-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .historia-image {
        order: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr;
        text-align: left;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ============================================
   SCROLL SUAVE Y SCROLLBAR
============================================ */
html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

/* ============================================
   ANIMACIONES Y MEJORAS VISUALES
============================================ */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MEJORAS DE ACCESIBILIDAD
============================================ */
/* Focus visible para navegación por teclado */
.nav-links a:focus,
.social-links a:focus,
.footer-legal a:focus {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Reducir animaciones para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .valor-card:hover,
    .ventaja-item:hover,
    .stat-item:hover,
    .compromiso-item:hover {
        transform: none;
    }
}

/* ============================================
   UTILIDADES RESPONSIVE
============================================ */
/* Clases de utilidad para espaciado responsive */
.spacing-xs { margin: clamp(0.25rem, 1vw, 0.5rem); }
.spacing-sm { margin: clamp(0.5rem, 2vw, 1rem); }
.spacing-md { margin: clamp(1rem, 3vw, 2rem); }
.spacing-lg { margin: clamp(2rem, 5vw, 4rem); }

.padding-xs { padding: clamp(0.25rem, 1vw, 0.5rem); }
.padding-sm { padding: clamp(0.5rem, 2vw, 1rem); }
.padding-md { padding: clamp(1rem, 3vw, 2rem); }
.padding-lg { padding: clamp(2rem, 5vw, 4rem); }

/* Clases para ocultar/mostrar según dispositivo */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}