/* Modern Reset - Manteniendo tu reset original SOBRENBOSOTROS */
* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
}

:root {
    --primary-color: #090979;
    --accent-color: #11fdf5;
    --gradient-start: #9c26bc;
    --gradient-end: #090979;
    --text-dark: #333;
    --text-light: white;
    --text-muted: #666;
    --header-bg: #9c26bc;
    --tab-inactive: #e5dfdf;
    --highlight1: #11fdf5;
    --highlight2: #9c26bc;
    --footer-bg: #090979;
    --footer-text: #11fdf5;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header and Navigation - Enhanced */
header {
    background: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: padding 0.3s ease;
    width: 100%;
}

header.scrolled {
    padding: 12px 5%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 52px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo img:hover {
    transform: scale(1.08) rotate(2deg);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 36px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 6px 2px;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 2px;
}

nav ul li a:hover::after,
nav ul li a.active::after,
nav ul li a.activo::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active,
nav ul li a.activo {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Contact Hero Section - Enhanced */
.contacto-hero {
    background: linear-gradient(135deg, #11fdf5, #9c26bc);
    color: white;
    text-align: center;
    padding: 120px 20px 160px;
    position: relative;
    overflow: hidden;
}

.contacto-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.contacto-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contacto-hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: perspective(500px) translateZ(0);
    transition: var(--transition);
    animation: float 5s ease-in-out infinite;
}

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

.contacto-hero p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.contacto-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to right, #7b79b5, #a2c3df, #c2e7f5);
    clip-path: polygon(0 35%, 100% 65%, 100% 100%, 0% 100%);
    z-index: 1;
}

/* Contenedor principal */
.sobre-nosotros-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Secciones */
.section {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-top: 15px;
    border-radius: 2px;
}

.section p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

/* Misión y Visión */
.mision-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.mision, .vision {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Valores */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.valor {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.valor:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.valor h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.valor p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Footer Styles */
.footer {
    padding: 60px 5% 0;
    background-color: #090979;
    color: white;
}

.footer-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    gap: 40px;
}

.footer-info {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.footer-info h3 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-info p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-info a:hover {
    color: white;
}

.footer-logo {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    width: 80px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.footer-copyright {
    background-color: #000000;
    padding: 20px 5%;
    font-size: 14px;
    text-align: center;
    color: #ccc;
}

.footer-copyright a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-copyright a:hover {
    color: white;
}

/* Estilos para el botón del menú hamburguesa */
#menu-button {
    display: none; /* Oculto por defecto en pantallas grandes */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: relative;
}

#menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: transform 0.3s, opacity 0.3s;
}

/* Animación para el botón hamburguesa cuando está abierto */
#menu-button.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-button.open span:nth-child(2) {
    opacity: 0;
}

#menu-button.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ======= MEJORAS RESPONSIVAS ======= */

/* Estilos responsivos para dispositivos móviles */
@media screen and (max-width: 992px) {
    /* Ajustes para el encabezado */
    header {
        width: 100%;
    }
    
    nav ul {
        gap: 20px;
    }
    
    nav ul li a {
        font-size: 15px;
    }
    
    /* Ajustes para la sección de Misión-Visión */
    .mision-vision {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    /* Menú hamburguesa y navegación */
    #menu-button {
        display: block;
    }
    
    header nav {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto por defecto */
        width: 70%;
        height: 100vh;
        background-color: var(--primary-color);
        transition: right 0.3s ease;
        z-index: 999;
        padding-top: 60px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    header nav.active {
        right: 0; /* Visible cuando está activo */
    }
    
    header nav ul {
        flex-direction: column;
        padding: 0 20px;
        gap: 25px;
    }
    
    header nav ul li {
        margin: 0;
        width: 100%;
    }
    
    header nav ul li a {
        display: block;
        padding: 8px 0;
        font-size: 18px;
        width: 100%;
    }
    
    /* Sección Hero */
    .contacto-hero {
        padding: 80px 20px 120px;
    }
    
    .contacto-hero h1 {
        font-size: 40px;
    }
    
    .contacto-hero p {
        font-size: 18px;
    }
    
    /* Secciones */
    .section {
        padding: 30px 20px;
    }
    
    .section h2 {
        font-size: 28px;
    }
    
    /* Footer */
    .footer-contenedor {
        gap: 30px;
    }
    
    .footer-info, .footer-logo {
        flex: 100%;
        text-align: center;
    }
    
    .footer-info h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Overlay para el menú móvil */
    body.menu-open {
        overflow: hidden;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .overlay.active {
        display: block;
    }
}

@media screen and (max-width: 576px) {
    /* Header */
    header {
        padding: 15px 5%;
    }
    
    .logo img {
        width: 42px;
    }
    
    /* Hero */
    .contacto-hero {
        padding: 60px 15px 100px;
    }
    
    .contacto-hero h1 {
        font-size: 32px;
    }
    
    .contacto-hero p {
        font-size: 16px;
    }
    
    .contacto-hero::after {
        height: 100px;
    }
    
    /* Secciones */
    .section {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    
    .section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .section p {
        font-size: 15px;
    }
    
    /* Valores */
    .valores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .valor {
        padding: 20px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 5% 0;
    }
    
    .footer-logo h3 {
        font-size: 16px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}

/* Ajustes específicos para tablets */
@media screen and (min-width: 769px) and (max-width: 992px) {
    .contacto-hero h1 {
        font-size: 48px;
    }
    
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mejoras para pantallas muy pequeñas */
@media screen and (max-width: 375px) {
    .contacto-hero h1 {
        font-size: 28px;
    }
    
    .footer-logo img {
        width: 60px;
    }
    
    .footer-logo h3 {
        font-size: 14px;
    }
    
    .section h2 {
        font-size: 22px;
    }
    
    #menu-button span {
        width: 22px;
        height: 2px;
    }
}

/* Fix para pantallas más pequeñas */
@media screen and (max-width: 480px) {
    header {
        padding: 15px 4%;
    }
    
    .logo img {
        width: 40px;
    }
    
    header nav {
        width: 80%; /* Más ancho en pantallas pequeñas */
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
    display: block;
}

  