/* =============================================
   MAIN CSS - De La Vega Consultores Legales
   ============================================= */

/* Importar tipografías corporativas De La Vega */
@import url('https://fonts.cdnfonts.com/css/gotham');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');

:root {
    /* Colores Corporativos Oficiales De La Vega - Manual de Identidad */
    --royal-blue: #002856;  /* Color principal */
    --dim-gray: #626161;    /* Gris corporativo */
    --blue-green: #157170;  /* Verde azulado corporativo */
    --soft-aqua: #68AFB5;   /* Aqua suave corporativo */
    --blanco: #ffffff;
    
    /* Espaciado */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Tipografía Corporativa De La Vega */
    --font-primary: 'Poppins', sans-serif;  /* Para subtítulos y texto general */
    --font-secondary: 'Gotham', 'Poppins', sans-serif;  /* Para títulos principales */
    
    /* Transiciones */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Z-Index */
    --z-loader: 100000;
    --z-modal: 20000;
    --z-navbar: 10000;
    --z-chatbot: 50000;
    --z-dropdown: 1000;
    --z-default: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 200;  /* Extra Light para texto general */
    line-height: 1.5;
    color: var(--blanco);
    background: var(--royal-blue);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Gotham', 'Poppins', sans-serif;
    font-weight: 500;  /* Gotham Medium para títulos */
    color: var(--blanco);
    letter-spacing: 0.5px;
}

p, span, li {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Sin bordes redondeados - todo cuadrado */
* {
    border-radius: 0 !important;
}

/* Navigation Negra Elegante */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);  /* Fondo blanco para mejor contraste */
    border-bottom: 3px solid var(--royal-blue);  /* Borde Royal Blue corporativo */
    z-index: 10000;
    transition: all 0.3s ease;
    height: 100px;  /* Altura máxima para logo completo sin cortes */
    box-shadow: 0 2px 10px rgba(0, 40, 86, 0.1);
}

nav.scrolled {
    background: rgba(255, 255, 255, 1);  /* Fondo blanco sólido al hacer scroll */
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 40, 86, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 80px;  /* Logo mucho más grande para mostrar completo */
    max-width: 450px;  /* Ancho máximo muy grande para logo completo */
    width: auto;  /* Mantener proporción natural */
    object-fit: contain;  /* Evitar que se corte la imagen */
    object-position: left center;  /* Alineación a la izquierda */
    margin-right: 20px;  /* Espacio para limpiar el área del logo */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--royal-blue);  /* Letras azules sobre fondo blanco */
    font-weight: 400;  /* Más peso para mejor legibilidad */
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: var(--blue-green);  /* Hover con Blue Green corporativo */
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-green);  /* Línea con Blue Green corporativo */
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Hero Section - SIN BORDE AMARILLO, SIN BLUR, SIN BACKGROUND */
.hero {
    margin-top: 100px;  /* Ajustado para la nueva altura del nav */
    flex: 1;
    min-height: 60vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('img/backgrounds/Captura de pantalla 2025-09-01 180028.png') center/cover;
    background-attachment: fixed;
    overflow: hidden;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 30px 60px;
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    max-width: 700px;
    text-align: center;
    padding: 10px;
}

.hero-subtitle {
    color: var(--soft-aqua);
    font-family: 'Poppins', sans-serif;
    font-weight: 200;  /* Poppins ExtraLight */
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    color: var(--blanco);
    margin-bottom: 10px;
    font-weight: 500;  /* Gotham Medium */
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    font-family: 'Gotham', 'Poppins', sans-serif;
}

.hero-text h1 .accent-text {
    color: var(--soft-aqua);
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px; /* Ultra reducido */
    line-height: 1.3; /* Reducido */
    font-weight: 200;
    opacity: 0;
    animation: fadeInUp 1.2s ease 0.4s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1.4s ease 0.6s forwards;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--royal-blue);  /* Royal Blue corporativo */
    color: var(--blanco);  /* Blanco para contraste */
    border-color: var(--royal-blue);
}

.btn-primary:hover {
    background: var(--blue-green);  /* Blue Green al hover */
    color: var(--blanco);
    border-color: var(--blue-green);
    transform: translateX(3px);
}

.btn-secondary {
    background: transparent;
    color: var(--blanco);
    border: 1px solid var(--blanco);
}

.btn-secondary:hover {
    background: var(--blanco);
    color: var(--royal-blue);
}

/* Trust Numbers con números en amarillo */
.trust-bar {
    position: relative;
    background: rgba(0, 40, 86, 0.5);  /* Royal Blue corporativo */
    backdrop-filter: blur(10px);
    padding: 10px;
    border-top: 2px solid var(--soft-aqua);
    z-index: 3;
    margin: 0;
}

.trust-bar-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-bar-item {
    text-align: center;
}

.trust-bar-number {
    font-size: 1.8rem;
    color: var(--blanco);  /* Blanco sobre fondo azul para contraste */
    font-weight: 600;
    margin-bottom: 5px;
    font-family: 'Gotham', 'Poppins', sans-serif;
}

.trust-bar-label {
    color: var(--blanco);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    font-weight: 400;
}

.trust-bar-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    margin-top: 3px;
}

/* Mini Carrusel de Clientes después del Hero */
.mini-clients-carousel {
    background: var(--royal-blue);
    padding: 10px 0;
    border-top: 2px solid var(--soft-aqua);
    border-bottom: 2px solid var(--soft-aqua);
    position: relative;
    overflow: hidden;
    display: block;
    z-index: 1;
    margin: 0;
}

.mini-clients-track {
    display: flex;
    animation: scrollMiniClients 25s linear infinite;
    gap: 40px;
    padding: 0 20px;
}

@keyframes scrollMiniClients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.mini-client-item {
    min-width: 120px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s;
}

.mini-client-item:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.mini-client-item img {
    max-width: 100px;
    max-height: 40px;
    object-fit: contain;
}

/* Secciones */
.section {
    padding: 40px 30px;
    position: relative;
    min-height: auto;
}

.section-dark {
    background: var(--royal-blue);
    color: var(--blanco);
    position: relative;
}

.section-dark-bg {
    background: url('img/backgrounds/Gemini_Generated_Image_8s0bt08s0bt08s0b.png') center/cover;
    position: relative;
}

.section-dark-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.section-dark-bg > * {
    position: relative;
    z-index: 1;
}

.section-light {
    background: url('img/backgrounds/Captura de pantalla 2025-09-01 180120.png') center/cover fixed;
    color: var(--blanco);
    position: relative;
}

.section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.section-light > * {
    position: relative;
    z-index: 2;
}

.section-gray {
    background: url('img/backgrounds/Captura de pantalla 2025-09-01 180155.png') center/cover;
    color: var(--blanco);
    position: relative;
}

.section-gray::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 86, 0.5);
    z-index: 0;
}

.section-gray > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Page Sections */
.page-section {
    min-height: calc(100vh - 60px);
    padding-top: 60px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page-section.active {
    opacity: 1;
}

/* Específico para la sección hero/inicio */
#inicio.page-section {
    min-height: 100vh;
    padding-top: 0;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.page-section.active {
    animation: fadeIn 0.5s ease forwards;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-top: 20px;
}

.section-subtitle {
    color: var(--soft-aqua);  /* Soft Aqua corporativo */
    font-family: 'Poppins', sans-serif;
    font-weight: 200;  /* Poppins ExtraLight */
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 10px;
    display: block;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--blanco);
    font-weight: 500;  /* Gotham Medium */
    font-family: 'Gotham', 'Poppins', sans-serif;
    position: relative;
    text-align: center;
}

/* Línea decorativa eliminada */

.section-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 200;
}

/* Nosotros Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.about-text {
    padding: 25px;
    background: rgba(0, 40, 86, 0.5);
    border: 1px solid var(--soft-aqua);
    backdrop-filter: blur(5px);
}

.about-text h3 {
    color: var(--soft-aqua);
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.about-logo-space {
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 0;
}

.about-logo-space img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    opacity: 0.95;
}

.about-text p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 25px;
    background: rgba(0, 40, 86, 0.5);
    border: 1px solid var(--soft-aqua);
    backdrop-filter: blur(5px);
}

.value-card {
    text-align: center;
    padding: 20px;
    background: rgba(0, 40, 86, 0.3);
    border: 1px solid var(--soft-aqua);
    transition: all 0.3s;
}

.value-card:hover {
    background: rgba(104, 175, 181, 0.2);
    transform: translateY(-3px);
    border-color: var(--soft-aqua);
}

.value-icon {
    font-size: 1.8rem;
    color: var(--soft-aqua);
    margin-bottom: 12px;
}

.value-card h4 {
    color: var(--blanco);
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    font-size: 0.8rem;
}

/* Botón de descarga de brochure */
.brochure-download {
    text-align: center;
    margin: 40px 0;
    padding: 25px;
    background: rgba(0, 40, 86, 0.5);
    border: 2px solid var(--soft-aqua);
    backdrop-filter: blur(5px);
}

.brochure-download h3 {
    color: var(--soft-aqua);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.brochure-download p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.btn-download {
    background: var(--soft-aqua);  /* Soft Aqua corporativo */
    color: var(--royal-blue);  /* Royal Blue para contraste */
    padding: 10px 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    border: 1px solid var(--soft-aqua);
    transition: all 0.3s;
}

.btn-download:hover {
    background: transparent;
    color: var(--soft-aqua);
}

/* Testimonios con recuadros transparentes */
.testimonials-section {
    padding: 40px 30px;
    position: relative;
}

.testimonial-card {
    background: rgba(0, 40, 86, 0.4);
    padding: 30px;
    border: 1px solid var(--soft-aqua);
    margin-bottom: 25px;
    position: relative;
    backdrop-filter: blur(5px);
}

.testimonial-quote {
    font-size: 1rem;
    color: var(--blanco);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    color: var(--soft-aqua);  /* Soft Aqua corporativo */
    font-weight: 500;  /* Gotham Medium */
    font-size: 0.9rem;
    font-family: 'Gotham', 'Poppins', sans-serif;
}

.testimonial-position {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.quote-mark {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--soft-aqua);
    opacity: 0.3;
    font-family: 'Gotham', 'Poppins', sans-serif;
}

/* Services Grid con recuadros azules */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background: rgba(0, 40, 86, 0.4);
    padding: 30px;
    position: relative;
    transition: all 0.4s;
    border: 1px solid var(--soft-aqua);
    backdrop-filter: blur(5px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(104, 175, 181, 0.2), transparent);
    transition: width 0.4s;
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--soft-aqua);
    z-index: 10;
}

.service-icon {
    width: 40px;
    height: 40px;
    background: var(--soft-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--royal-blue);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--blanco);
    font-family: 'Gotham', 'Poppins', sans-serif;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-bottom: 15px;
    font-size: 0.8rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding-left: 20px;
    border-bottom: 1px solid rgba(104, 175, 181, 0.2);
    font-size: 0.75rem;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--soft-aqua);  /* Soft Aqua corporativo */
    font-size: 1rem;
}

/* Partners Section con recuadros azules transparentes */
.partners-carousel {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
    overflow: hidden;
}

.partners-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.partner-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 30px;
}

.partner-card {
    text-align: center;
    padding: 25px;
    background: rgba(0, 40, 86, 0.5);
    border: 1px solid var(--soft-aqua);
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--soft-aqua);
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.partner-card:hover::before {
    transform: translateX(0);
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--soft-aqua);
    background: rgba(0, 40, 86, 0.7);
}

.partner-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 2px solid var(--soft-aqua);
}

.partner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s;
}

.partner-card:hover .partner-photo img {
    filter: none;
}

.partner-card h3 {
    color: var(--blanco);
    margin-bottom: 8px;
    font-size: 1rem;
    font-family: 'Gotham', 'Poppins', sans-serif;
}

.partner-title {
    color: var(--soft-aqua);  /* Soft Aqua corporativo */
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 400;
}

.partner-bio {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    font-size: 0.8rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 40, 86, 0.5);  /* Royal Blue corporativo */
    border: 1px solid var(--soft-aqua);
    color: var(--soft-aqua);  /* Soft Aqua corporativo */
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.carousel-btn:hover {
    background: var(--soft-aqua);
    color: var(--royal-blue);  /* Royal Blue para contraste */
}

/* Modal para Socios */
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--royal-blue);
    width: 90%;
    max-width: 1000px;
    height: 70vh;
    display: flex;
    position: relative;
    border: 2px solid var(--soft-aqua);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--soft-aqua);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--blanco);
}

.modal-text {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: var(--royal-blue);
}

.modal-text h2 {
    color: var(--blanco);
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-family: 'Gotham', 'Poppins', sans-serif;
}

.modal-text .position {
    color: var(--soft-aqua);  /* Soft Aqua corporativo */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.modal-text .bio {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.9rem;
}

.modal-text h3 {
    color: var(--blanco);
    margin: 25px 0 15px;
    font-size: 1.2rem;
    font-family: 'Gotham', 'Poppins', sans-serif;
}

.modal-text ul {
    list-style: none;
    margin-left: 0;
}

.modal-text li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.85rem;
}

.modal-text li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--soft-aqua);
}

.modal-image {
    width: 400px;
    background: var(--dim-gray);
    position: relative;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Notas Ejecutivas Section con fondo blanco */
.executive-notes-section {
    background: var(--royal-blue);
    padding: 60px 30px;
    position: relative;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.note-card {
    background: var(--blanco);
    padding: 0;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--soft-aqua);
    height: 386px;
    max-height: 386px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.note-image {
    width: 100%;
    height: 150px !important;
    background: linear-gradient(135deg, var(--royal-blue), var(--soft-aqua));
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.note-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.note-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.note-date {
    color: var(--royal-blue);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.note-title {
    font-size: 1rem;
    color: var(--royal-blue);
    margin-bottom: 12px;
    font-family: 'Gotham', 'Poppins', sans-serif;
    line-height: 1.3;
}

.note-excerpt {
    color: var(--dim-gray);
    line-height: 1.4;
    margin-bottom: 15px;
    font-size: 0.8rem;
}

.note-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--dim-gray);
}

.author-avatar {
    width: 30px;
    height: 30px;
    background: var(--royal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    font-weight: 500;
    font-size: 0.75rem;
}

.author-info {
    flex: 1;
}

.author-name {
    color: var(--royal-blue);
    font-weight: 500;
    font-size: 0.8rem;
}

.author-position {
    color: var(--dim-gray);
    font-size: 0.7rem;
}

.read-more {
    color: var(--royal-blue);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
    font-weight: 600;
}

.read-more:hover {
    gap: 10px;
    color: var(--soft-aqua);
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Clientes Section con Carrusel Horizontal */
.clients-section {
    background: url('img/backgrounds/Gemini_Generated_Image_8s0bt08s0bt08s0b.png') center/cover fixed;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
}

.clients-section > * {
    position: relative;
    z-index: 1;
}

.clients-carousel-container {
    margin-top: 40px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 40, 86, 0.5);
    border-top: 2px solid var(--soft-aqua);
    border-bottom: 2px solid var(--soft-aqua);
    padding: 30px 0;
}

.clients-carousel-track {
    display: flex;
    animation: scrollClients 30s linear infinite;
}

@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-item {
    min-width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 20px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid var(--soft-aqua);
    transition: all 0.3s;
}

.client-item:hover {
    transform: scale(1.1);
    background: rgba(104, 175, 181, 0.2);
    border-color: var(--soft-aqua);
}

.client-item img {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s;
}

.client-item:hover img {
    filter: brightness(1.2);
}

.client-name {
    color: var(--blanco);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.client-item:hover .client-name {
    color: var(--soft-aqua);
}

/* Contact Section con Mapa */
.contact-section {
    background: url('img/backgrounds/Captura de pantalla 2025-09-01 180155.png') center/cover;
    padding: 60px 30px;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
}

.contact-section > * {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form {
    background: rgba(0, 40, 86, 0.6);
    padding: 35px;
    border: 2px solid var(--soft-aqua);
    backdrop-filter: blur(5px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--soft-aqua);  /* Soft Aqua corporativo */
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--soft-aqua);
    background: rgba(0, 40, 86, 0.3);
    color: var(--blanco);
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 0.85rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--soft-aqua);
    background: rgba(0, 40, 86, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--soft-aqua);  /* Soft Aqua corporativo */
    color: var(--royal-blue);  /* Royal Blue para contraste */
    border: none;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: transparent;
    color: var(--soft-aqua);
    border: 1px solid var(--soft-aqua);
}

/* Mapa y información de contacto */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    background: var(--blanco);
    padding: 10px;
    border: 2px solid var(--soft-aqua);
    height: 300px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--soft-aqua);
    color: var(--royal-blue);
    padding: 8px 15px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
    z-index: 10;
}

.map-link:hover {
    background: var(--royal-blue);
    color: var(--blanco);
}

.contact-info {
    padding: 35px;
    background: rgba(0, 40, 86, 0.6);
    border: 2px solid var(--soft-aqua);
    backdrop-filter: blur(5px);
}

.info-item {
    display: flex;
    align-items: start;
    gap: 20px;
    margin-bottom: 25px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--soft-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--royal-blue);
    font-size: 1rem;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--blanco);
    margin-bottom: 8px;
    font-size: 1rem;
    font-family: 'Gotham', 'Poppins', sans-serif;
}

.info-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    font-size: 0.85rem;
}

/* Footer */
footer {
    background: rgba(0, 40, 86, 0.95);  /* Royal Blue corporativo */
    color: var(--blanco);
    padding: 50px 30px 25px;
    border-top: 2px solid var(--soft-aqua);
    position: relative;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--soft-aqua);
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'Gotham', 'Poppins', sans-serif;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.8rem;
}

.footer-column ul li a:hover {
    color: var(--soft-aqua);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    width: 35px;
    height: 35px;
    background: rgba(0, 40, 86, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--soft-aqua);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--soft-aqua);
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--soft-aqua);
    color: var(--royal-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(104, 175, 181, 0.3);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* Mobile Responsive */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--royal-blue);  /* Azul sobre fondo blanco */
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--royal-blue);
        flex-direction: column;
        padding: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .trust-bar-number {
        font-size: 1.4rem;
    }

    .services-grid,
    .notes-grid {
        grid-template-columns: 1fr;
    }

    .partner-slide {
        grid-template-columns: 1fr;
    }

    .contact-grid,
    .footer-content,
    .about-content,
    .about-values {
        grid-template-columns: 1fr;
    }

    .modal-content {
        flex-direction: column;
        height: 80vh;
    }

    .modal-image {
        width: 100%;
        height: 200px;
    }

    .section {
        padding: 40px 20px;
    }

    .executive-notes-section {
        padding: 40px 20px;
    }

    .testimonials-section {
        padding: 30px 20px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .brochure-download {
        padding: 20px;
        margin: 30px 0;
    }

    .contact-section {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    /* REGLA FUNDAMENTAL: TODO APILADO VERTICALMENTE EN MÓVIL */
    * {
        flex-direction: column !important;
    }

    .row,
    .flex,
    .flex-row,
    .d-flex {
        flex-direction: column !important;
    }

    /* Excepciones específicas (solo para elementos inline pequeños) */
    .btn-group,
    .social-links,
    .inline-icons {
        flex-direction: row !important;
    }

    /* Tipografía base */
    body {
        font-size: 14px;
    }

    .section-title {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 0.75rem !important;
    }

    /* Botones generales */
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
        margin: 5px 0;
    }

    .btn-primary,
    .btn-secondary {
        display: block;
        text-align: center;
    }

    /* Evitar scroll horizontal */
    body,
    html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    * {
        max-width: 100vw !important;
    }

    /* Imágenes responsive */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Padding general */
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 60px 15px !important;
    }

    /* Tarjetas de notas */
    .note-content {
        padding: 15px;
    }

    .note-card,
    .service-card,
    .partner-card {
        margin: 0 auto;
        max-width: 100%;
    }

    /* Testimonios */
    .testimonial-card {
        padding: 20px;
    }

    /* Brochure */
    .brochure-download {
        padding: 15px;
    }

    .brochure-download h3 {
        font-size: 1.1rem;
    }

    /* Formularios */
    input,
    textarea,
    select {
        font-size: 16px !important; /* Evita zoom en iOS */
    }

    /* Modales */
    .modal {
        padding: 10px;
    }

    .modal-content {
        width: calc(100% - 20px);
        margin: 10px;
        max-height: calc(100vh - 40px);
    }

    /* Ocultar elementos no esenciales */
    .decorative-element,
    .background-pattern {
        display: none;
    }

    /* Mejorar legibilidad */
    p {
        line-height: 1.6;
        font-size: 0.85rem;
    }

    li {
        line-height: 1.5;
        font-size: 0.85rem;
    }
}