/* ============================================================
   === 1. VARIABLES Y RESET
   ============================================================ */

:root {
    /* Colores corporativos */
    --primary:            #E01A22;
    --primary-dark:       #a31218;
    --primary-light:      rgba(239, 25, 33, 0.08);

    /* Neutros */
    --neutral-dark:       #525252;
    --neutral-medium:     #6b7280;
    --neutral-light:      #888;

    /* Sistema de colores */
    --background:         #ffffff;
    --foreground:         #030213;
    --secondary:          #f4f4f4;
    --muted:              #ececf0;
    --muted-foreground:   #525252;
    --border:             rgba(0, 0, 0, 0.1);
    --border-dark:        rgba(255, 255, 255, 0.1);
    --card:               #ffffff;

    /* Miscelánea */
    --radius:             0.625rem;
    --font-sans:          'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Modo Oscuro */
body.dark {
    --background:         #030213;
    --foreground:         #ffffff;
    --card:               #0a0a1a;
    --secondary:          #1a1a2e;
    --muted:              #1e1e30;
    --muted-foreground:   #94a3b8;
    --border:             rgba(255, 255, 255, 0.1);
    --border-dark:        rgba(255, 255, 255, 0.2);
}

body.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* ============================================================
   === 2. UTILIDADES
   ============================================================ */

.container {
    max-width: 80rem; /* 1280px */
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.text-center    { text-align: center; }
.text-primary   { color: var(--primary); }
.no-underline   { text-decoration: none; color: inherit; }
.max-w-4xl      { max-width: 56rem; }
.max-w-2xl      { max-width: 42rem; }
.mx-auto        { margin-left: auto; margin-right: auto; }
.leading-relaxed { line-height: 1.625; }
.w-full         { width: 100%; }
.font-bold      { font-weight: 700; }

.text-muted-foreground { color: var(--muted-foreground); }

/* ============================================================
   === 3. NAVBAR
   ============================================================ */

.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.navbar .container {
    height: 100%;
    width: 100%;
}

.logo-area a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img  { height: 40px; width: auto; }
.logo-text { font-weight: 700; font-size: 1.25rem; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted-foreground);
    font-weight: 500;
    transition: color 0.2s;
}

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

@media (max-width: 768px) {
    .nav-links    { display: none; }
    .hidden-mobile { display: none; }
}

@media (min-width: 769px) {
    .hidden-mobile { display: inline; }
}

/* ============================================================
   === 4. HERO
   ============================================================ */

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero .container { max-width: 1450px; }

/* Fondo con slider de imágenes */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.hero-slide.active img {
    transform: scale(1);
}

.hero-slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(3, 2, 19, 0.42) 0%,
        rgba(3, 2, 19, 0.32) 50%,
        rgba(3, 2, 19, 0.38) 100%
    );
    z-index: 1;
}

/* Fondo decorativo */
.hero-bg-decorations {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.hero-grid-pattern,
.hero-dots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Puntos animados */
.hero-dot-1 { animation: pulse-dot 4.0s ease-in-out infinite; }
.hero-dot-2 { animation: pulse-dot 5.0s ease-in-out infinite 1s; }
.hero-dot-3 { animation: pulse-dot 6.0s ease-in-out infinite 2s; }
.hero-dot-4 { animation: pulse-dot 5.5s ease-in-out infinite 0.5s; }
.hero-dot-5 { animation: pulse-dot 7.0s ease-in-out infinite 3s; }

@keyframes pulse-dot {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.5); }
}

/* Formas geométricas */
.hero-shape-square {
    position: absolute;
    top: 25%; left: 10%;
    width: 80px; height: 80px;
    animation: float-rotate 15s ease-in-out infinite;
}

.hero-shape-circle {
    position: absolute;
    top: 60%; right: 15%;
    width: 70px; height: 70px;
    animation: float-rotate-reverse 20s ease-in-out infinite;
}

.hero-shape-triangle {
    position: absolute;
    top: 15%; right: 25%;
    width: 90px; height: 90px;
    animation: float-rotate 18s ease-in-out infinite 2s;
}

.hero-shape-triangle-2 {
    position: absolute;
    bottom: 20%; left: 20%;
    width: 65px; height: 65px;
    animation: float-rotate-reverse 16s ease-in-out infinite 1s;
}

@media (max-width: 768px) {
    .hero-shape-triangle { display: none; }
}

@keyframes float-rotate         { 0%, 100% { transform: translateY(0)   rotate(0deg);    } 50% { transform: translateY(-25px) rotate(90deg);  } }
@keyframes float-rotate-reverse { 0%, 100% { transform: translateY(0)   rotate(0deg);    } 50% { transform: translateY(20px)  rotate(-180deg); } }

/* Líneas curvas */
.hero-curved-lines {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 33%;
    opacity: 0.4;
}

.hero-curve-1 { animation: wave-animation 10s ease-in-out infinite; }
.hero-curve-2 { animation: wave-animation 12s ease-in-out infinite 1s; }

@keyframes wave-animation {
    0%, 100% { d: path("M0,150 Q250,50 500,150 T1000,150"); }
    50%       { d: path("M0,150 Q250,200 500,150 T1000,150"); }
}

/* Acentos de esquina */
.hero-corner-accent-right {
    position: absolute;
    top: 0; right: 0;
    width: 350px; height: 350px;
    animation: rotate-slow 30s linear infinite;
}

.hero-corner-accent-left {
    position: absolute;
    bottom: 0; left: 0;
    width: 300px; height: 300px;
    animation: rotate-slow-reverse 25s linear infinite;
}

@media (max-width: 768px) {
    .hero-corner-accent-right { width: 250px; height: 250px; }
    .hero-corner-accent-left  { width: 200px; height: 200px; }
}

@keyframes rotate-slow         { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes rotate-slow-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

/* Blobs de gradiente */
.hero-blob-1 {
    position: absolute;
    top: 80px; right: 80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(239, 25, 33, 0.15), rgba(163, 18, 24, 0.08));
    border-radius: 50%;
    filter: blur(60px);
    animation: blob-float 8s ease-in-out infinite;
}

.hero-blob-2 {
    position: absolute;
    bottom: 80px; left: 80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(82, 82, 82, 0.1), rgba(239, 25, 33, 0.08));
    border-radius: 50%;
    filter: blur(70px);
    animation: blob-float-reverse 10s ease-in-out infinite;
}

@keyframes blob-float         { 0%, 100% { transform: scale(1)   translateY(0);   opacity: 0.3; } 50% { transform: scale(1.2) translateY(-20px); opacity: 0.5; } }
@keyframes blob-float-reverse { 0%, 100% { transform: scale(1.2) translateY(0);   opacity: 0.2; } 50% { transform: scale(1)   translateY(20px);  opacity: 0.4; } }

/* Blobs de gradiente - adaptados para fondo oscuro */
.hero-blob-1 {
    position: absolute;
    top: 80px; right: 80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(224, 26, 34, 0.25), rgba(224, 26, 34, 0.1));
    border-radius: 50%;
    filter: blur(60px);
    animation: blob-float 8s ease-in-out infinite;
}

.hero-blob-2 {
    position: absolute;
    bottom: 80px; left: 80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(224, 26, 34, 0.08));
    border-radius: 50%;
    filter: blur(70px);
    animation: blob-float-reverse 10s ease-in-out infinite;
}

/* Grid del hero */
.hero-grid {
    display: flex;
    position: relative;
    z-index: 10;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

/* Contenido de texto */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Texto del hero - ajustado para fondo oscuro */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
    color: #ffffff;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-gray { 
    color: rgba(255, 255, 255, 0.75); 
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 42rem;
    margin: 0 auto 2rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-badge span {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Indicadores de confianza */
.hero-trust-indicators {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
}

/* Imagen del hero */
.hero-image {
    position: relative;
    z-index: 3;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: float-gentle 6s ease-in-out infinite;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239, 25, 33, 0.15), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img { transform: scale(1.05); }

/* Tarjeta flotante */
.hero-floating-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 1rem;
    max-width: 280px;
    animation: fadeInScale 0.6s ease-out 0.8s both;
}

.floating-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.floating-card-content { flex: 1; }

.floating-card-label {
    font-size: 0.8rem;
    color: var(--neutral-medium);
    margin: 0 0 0.25rem 0;
}

.floating-card-text {
    font-size: 0.95rem;
    color: var(--neutral-dark);
    font-weight: 600;
    margin: 0;
}

@media (max-width: 1024px) {
    .hero-floating-card { display: none; }
}

/* Prevención de flash al cargar */
body:not(.loaded) .hero-content,
body:not(.loaded) .hero-buttons {
    opacity: 0;
}

/* Responsive del hero */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-grid { gap: 2rem; }
    
    .hero-content   { text-align: center; }
    .hero-badge     { margin-bottom: 1.5rem; }
    .hero-title     { font-size: 2rem; text-align: center; }
    .hero-subtitle  { text-align: center; font-size: 1rem; }

    /* Botones hero en móvil: CTA principal ocupa todo el ancho,
       "Contáctanos" es más sutil centrado sin estirar */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .btn-primary-gradient {
        justify-content: center;
        width: auto;
    }

    /* Secundario: más pequeño, sin borde fuerte, sólo texto con icono */
    .hero-buttons .btn-secondary-styled {
        width: auto;
        padding: 0.55rem 1.25rem;
        border: none;
        font-size: 0.875rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        background: rgba(255, 255, 255, 0.1);
    }

    .hero-buttons .btn-secondary-styled:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        transform: none;
    }

    .hero-trust-indicators { 
        justify-content: center; 
        font-size: 0.8rem; 
    }
    
    .hero-blob-1, .hero-blob-2 { 
        width: 200px; 
        height: 200px; 
    }

    /* Slider en móvil - evitar zoom extraño */
    .hero-slide img {
        object-position: center;
    }
    
    .hero-slider-overlay {
        background: linear-gradient(
            135deg,
            rgba(3, 2, 19, 0.52) 0%,
            rgba(3, 2, 19, 0.42) 50%,
            rgba(3, 2, 19, 0.48) 100%
        );
    }
}

/* Keyframes del hero */
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.8); }       to { opacity: 1; transform: scale(1); } }
@keyframes float-gentle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   === 5. BOTONES
   ============================================================ */

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(166, 30, 30, 0.15);
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(166, 30, 30, 0.25);
    opacity: 0.9;
    text-decoration: none;
}

.btn-outline {
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--foreground);
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-outline:hover { background-color: var(--secondary); }

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted-foreground);
    padding: 0.6rem 1.2rem;
    border-radius: calc(var(--radius) / 1.2);
    text-decoration: none;
    font-weight: 500;
    box-shadow: none;
    transition: background-color 0.15s, color 0.15s, transform 0.12s;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--foreground);
}

/* Botón primario con gradiente (hero) */
.btn-primary-gradient {
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary-gradient:hover::before  { opacity: 1; }
.btn-primary-gradient:hover          { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 30px rgba(239, 25, 33, 0.35); }

.btn-primary-gradient i,
.btn-primary-gradient span {
    position: relative;
    z-index: 1;
}

/* Botón secundario estilizado (hero) */
.btn-secondary-styled {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.btn-secondary-styled:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
}

/* ============================================================
   === 6. SECCIONES GENERALES
   ============================================================ */

.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
}

.section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
}

.py-32 { padding-top: 5rem; padding-bottom: 5rem; }

@media (min-width: 1024px) {
    .py-32 { padding-top: 8rem; padding-bottom: 8rem; }
}

.bg-soft-alt {
    background: linear-gradient(180deg, #fafafa 0%, #f3f3f6 100%);
}

.bg-secondary-30 {
    position: relative;
    background: linear-gradient(180deg, #f7f7f9 0%, #f1f1f4 100%);
    overflow: hidden;
}

.bg-secondary-30::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(224, 26, 34, 0.04), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(224, 26, 34, 0.03), transparent 40%);
    opacity: 0.6;
    animation: sectionFlow 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes sectionFlow {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-15px); }
}

/* Fondo decorativo reutilizable — mismos elementos visuales que el hero */
.section-decorated {
    position: relative;
    overflow: hidden;
}

.section-decorated > .section-bg-decorations {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.section-decorated > .section-bg-decorations .sec-grid-pattern,
.section-decorated > .section-bg-decorations .sec-dots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Puntos pulsantes */
.sec-dot-1 { animation: pulse-dot 4.0s ease-in-out infinite; }
.sec-dot-2 { animation: pulse-dot 5.5s ease-in-out infinite 1.2s; }
.sec-dot-3 { animation: pulse-dot 6.5s ease-in-out infinite 2.5s; }
.sec-dot-4 { animation: pulse-dot 5.0s ease-in-out infinite 0.8s; }

/* Blobs de fondo de sección */
.sec-blob-1 {
    position: absolute;
    top: -40px; right: 60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(239, 25, 33, 0.1), rgba(163, 18, 24, 0.05));
    border-radius: 50%;
    filter: blur(55px);
    animation: blob-float 9s ease-in-out infinite;
}

.sec-blob-2 {
    position: absolute;
    bottom: -40px; left: 60px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(82, 82, 82, 0.07), rgba(239, 25, 33, 0.05));
    border-radius: 50%;
    filter: blur(65px);
    animation: blob-float-reverse 11s ease-in-out infinite;
}

/* Formas geométricas de sección */
.sec-shape-square {
    position: absolute;
    top: 15%; left: 3%;
    width: 60px; height: 60px;
    animation: float-rotate 18s ease-in-out infinite;
}

.sec-shape-circle {
    position: absolute;
    bottom: 20%; right: 5%;
    width: 55px; height: 55px;
    animation: float-rotate-reverse 22s ease-in-out infinite;
}

/* Líneas curvas de fondo */
.sec-curved-lines {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 40%;
    opacity: 0.3;
}

.sec-curve-1 { animation: wave-animation 11s ease-in-out infinite; }
.sec-curve-2 { animation: wave-animation 13s ease-in-out infinite 1.5s; }

/* Acentos de esquina */
.sec-corner-right {
    position: absolute;
    top: 0; right: 0;
    width: 280px; height: 280px;
    animation: rotate-slow 35s linear infinite;
    opacity: 0.6;
}

.sec-corner-left {
    position: absolute;
    bottom: 0; left: 0;
    width: 240px; height: 240px;
    animation: rotate-slow-reverse 28s linear infinite;
    opacity: 0.6;
}

/* El contenido de la sección debe quedar sobre el fondo */
.section-decorated > .container,
.section-decorated > .section-bg-decorations ~ * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .sec-blob-1, .sec-blob-2    { width: 180px; height: 180px; }
    .sec-corner-right           { width: 180px; height: 180px; }
    .sec-corner-left            { width: 160px; height: 160px; }
    .sec-shape-square,
    .sec-shape-circle           { display: none; }
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, rgba(224, 26, 34, 0.8), rgba(224, 26, 34, 0.2));
    border-radius: 2px;
}

@media (min-width: 1024px) {
    .section-title { font-size: 3rem; }
}

.section-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.625;
}

/* ============================================================
   === 7. SERVICIOS
   ============================================================ */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 768px) {
    .services-grid {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 1rem 0 1.25rem 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .services-grid::-webkit-scrollbar { display: none; }
    .services-grid::after { content: ""; min-width: 16px; }

    .service-card {
        min-width: 280px;
        max-width: 320px;
        flex: 0 0 auto;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
    }

    .service-img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        margin-bottom: 0;
    }

    .service-icon {
        width: 46px;
        height: 46px;
        margin-top: -23px;
        margin-left: 1.25rem;
        border-width: 2.5px;
    }

    .service-card h3 {
        margin-top: 1rem;
        font-size: 1.125rem;
    }

    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .service-link {
        font-size: 0.85rem;
        padding-top: 0.85rem;
    }
}

.service-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, rgba(224, 26, 34, 0.03) 100%);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: 3px solid var(--primary);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(224, 26, 34, 0.07), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(166, 30, 30, 0.15);
    border-top-color: var(--primary);
    box-shadow: 0 20px 50px rgba(166, 30, 30, 0.1);
    transform: translateY(-6px);
}

.service-card:hover::before { opacity: 1; }

.service-img {
    position: relative;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
}

.service-card:hover .service-img { transform: scale(1.04); }

.service-card h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    margin: 1.25rem 0 0.6rem;
    line-height: 1.3;
    color: var(--foreground);
    letter-spacing: -0.2px;
}

.service-card p {
    color: var(--muted-foreground);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-icon {
    position: relative;
    margin-top: -30px;
    margin-left: 1.5rem;
    margin-bottom: 0;
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(224, 26, 34, 0.35);
    border: 3px solid #ffffff;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.service-card:hover .service-icon {
    background: var(--primary-dark);
    transform: scale(1.08) rotate(-6deg);
    box-shadow: 0 10px 25px rgba(224, 26, 34, 0.5);
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
    transition: gap 0.25s ease, color 0.25s ease;
}

.service-link::after {
    content: "";
    position: absolute;
    inset: -0.5rem -0.5rem -0.5rem -0.5rem;
    top: 0.5rem;
}

.service-link:hover {
    color: var(--primary-dark);
    gap: 0.85rem;
    text-decoration: none;
}

.arrow { transition: transform 0.25s ease; }
.service-link:hover .arrow { transform: translateX(4px); }

/* Indicador de scroll en móvil */
.scroll-indicator { display: none; }

@media (max-width: 768px) {
    .scroll-indicator {
        display: block;
        text-align: center;
        font-size: 0.95rem;
        color: var(--muted-foreground);
        font-weight: 600;
        margin-top: 1rem;
        opacity: 0.95;
    }

    .scroll-indicator::after {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-left: 8px;
        border-right: 2px solid var(--muted-foreground);
        border-bottom: 2px solid var(--muted-foreground);
        transform: rotate(-45deg);
        vertical-align: middle;
    }
}

/* ============================================================
   === 8. PRODUCTOS
   ============================================================ */

.products-wrapper {
    position: relative;
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
    overflow: visible;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(166, 30, 30, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.product-img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img { transform: scale(1.05); }

.product-link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}

.product-link:hover,
.product-link:active { text-decoration: none; }

.products-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .products-grid {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 1rem 0 1.25rem 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .products-grid::-webkit-scrollbar { display: none; }
    .products-grid::after { content: ""; min-width: 16px; }

    .product-card {
        min-width: 240px;
        max-width: 240px;
        scroll-snap-align: start;
    }

    .product-card:focus { outline: 2px solid rgba(166, 30, 30, 0.15); }

    .product-img {
        width: 100%;
        height: 240px;
        object-fit: cover;
    }

    .product-content { padding: 1rem; }
}

/* ============================================================
   === 9. MARCAS
   ============================================================ */

.brands {
    text-align: center;
    margin: 40px 0;
}

.brands-title {
    font-size: 0.9rem;
    color: var(--neutral-light);
    margin-bottom: 15px;
}

.brands-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.brands-logos img {
    height: 45px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.brands-logos img:hover { opacity: 1; filter: grayscale(0%); }

@media (max-width: 768px) {
    .brands-logos { gap: 15px; }
    .brands-logos img { height: 30px; opacity: 1; filter: none; }
}

/* ============================================================
   === 10. MISIÓN Y VISIÓN
   ============================================================ */

#nosotros { padding-top: 3rem; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card-mv {
    background: var(--secondary);
    padding: 2.5rem;
    border-radius: var(--radius);
}

.icon-box-p {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
}

.text-3xl { font-size: 1.875rem; font-weight: 700; }
.text-white { color: white; }

@media (max-width: 768px) {
    .card-mv .icon-box-p { margin-left: auto; margin-right: auto; }
    .card-mv h2,
    .card-mv .text-3xl { text-align: center; }
    .card-mv p         { text-align: center; }
}

/* ============================================================
   === 11. CONTACTO
   ============================================================ */

.contact-box {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background: linear-gradient(180deg, var(--card), #fbfbfb);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.04);
    max-width: 980px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
}

.contact-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .contact-top { grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: start; }
}

.contact-item { display: flex; gap: 1rem; align-items: flex-start; }

.contact-item h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: var(--foreground);
}

.contact-item p { color: var(--muted-foreground); margin: 0.1rem 0; }

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover { text-decoration: underline; }

.contact-icon-box {
    width: 3rem;
    height: 3rem;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-bottom {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .contact-top { flex-direction: column; }
}

/* Iconos de redes sociales */
.social-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary);
    text-decoration: none;
    color: var(--foreground);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.social-icon i { font-size: 24px; line-height: 1; }

.social-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.social-icon:hover::after { opacity: 1; }

.social-icon.whatsapp:hover  { background: #25D366; color: white; }
.social-icon.instagram:hover { background: #E4405F; color: white; }
.social-icon.facebook:hover  { background: #1877F2; color: white; }

/* ============================================================
   === 12. MAPA
   ============================================================ */

.map-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.map-iframe { width: 100%; height: 450px; border: 0; }

.map-info { padding: 2rem; display: flex; gap: 1rem; }

/* ============================================================
   === 13. FOOTER
   ============================================================ */

.footer {
    background: linear-gradient(180deg, #2B2B2B, #1f1f1f);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-desc { color: #9ca3af; margin-top: 1rem; }
.footer h4   { font-weight: 600; margin-bottom: 1.5rem; }
.footer ul   { list-style: none; }

/* En el footer los enlaces rápidos son <a>, no <button> */
.footer ul li a {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.2s;
    font-size: 1rem;
    text-decoration: none;
}

.footer ul li a:hover { color: var(--primary); }

.footer p {
    color: #9ca3af;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.footer-bottom {
    display: flex;
    justify-content: center;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer { padding: 2rem 1rem; }

    .grid-3 > div { text-align: center; }

    .footer h4 { text-align: center; margin-bottom: 0.75rem; }

    .footer ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0; margin: 0;
    }

    .footer ul li a { font-size: 0.98rem; color: #cbd5db; padding: 0.25rem 0; }

    .footer p { justify-content: center; align-items: center; gap: 0.5rem; }

    .footer .logo-img { height: 36px; }

    .footer-bottom { padding-top: 12px; font-size: 0.8125rem; }
}

/* ============================================================
   === 14. STATS (sección Experiencia)
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px rgba(0,0,0,0.08); }
.stat-card:hover::before { transform: scaleX(1); }

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

@media (max-width: 480px) {
    .stat-number { font-size: 1.75rem; }
    .stat-card { padding: 1.5rem 1rem; }
}

/* ============================================================
   === 15. NÚMERO DE ORDEN EN SERVICE CARDS
   ============================================================ */

.service-card-number {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    letter-spacing: 0.08em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    padding: 0.4rem 0.65rem;
    border-radius: 20px;
    border: 1px solid rgba(224, 26, 34, 0.2);
    transition: all 0.3s ease;
    z-index: 3;
}

.service-card:hover .service-card-number {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

/* ============================================================
   === 16. MEJORAS A CARD-MV (Misión / Visión)
   ============================================================ */

.card-mv {
    border-left: 3px solid var(--primary);
    border-top: 1px solid rgba(0,0,0,0.04);
    border-right: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-mv:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.09);
}

/* ============================================================
   === 17. NAVBAR ACTIVE LINK
   ============================================================ */

.nav-links a.nav-active {
    color: var(--primary);
    position: relative;
}

.nav-links a.nav-active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* ============================================================
   === 18. CTA BANNER (antes del footer)
   ============================================================ */

.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 50%, rgba(255,255,255,0.08), transparent 40%),
        radial-gradient(circle at 90% 50%, rgba(255,255,255,0.06), transparent 40%);
    pointer-events: none;
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.cta-banner-text { flex: 1; }

.cta-banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.cta-banner-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

.cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.cta-banner-btn i { font-size: 1.2rem; color: #25D366; }

.cta-banner-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

@media (max-width: 640px) {
    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner-title { font-size: 1.25rem; }

    .cta-banner-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   === 19. ANIMACIONES DE SCROLL (reveal)
   ============================================================ */

.reveal {
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up   { transform: translateY(30px); }
.fade-left { transform: translateX(-30px); }
.fade-right { transform: translateX(30px); }

.reveal.active { opacity: 1; transform: translate(0, 0); }

.decorative-blob { filter: blur(40px); opacity: 0.6; }

textarea { resize: none; }
/* ============================================================
   === 20. DRAWER "NOSOTROS" (Misión y Visión)
   ============================================================ */

/* Overlay */
.nosotros-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 2, 19, 0.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nosotros-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Panel lateral */
.nosotros-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(460px, 100vw);
    height: 100dvh;
    background: var(--background);
    z-index: 201;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.nosotros-drawer.active {
    transform: translateX(0);
}

/* Acento visual superior */
.nosotros-drawer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    z-index: 1;
}

/* Encabezado */
.nosotros-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.nosotros-drawer-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    display: block;
    margin-bottom: 0.2rem;
}

.nosotros-drawer-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--foreground);
}

/* Botón cerrar */
.nosotros-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.nosotros-close:hover {
    background: var(--secondary);
    color: var(--foreground);
    border-color: rgba(0,0,0,0.12);
}

/* Cuerpo scrolleable */
.nosotros-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(224,26,34,0.2) transparent;
}

.nosotros-drawer-body::-webkit-scrollbar { width: 4px; }
.nosotros-drawer-body::-webkit-scrollbar-track { background: transparent; }
.nosotros-drawer-body::-webkit-scrollbar-thumb { background: rgba(224,26,34,0.2); border-radius: 4px; }

/* Tarjetas de misión/visión dentro del drawer */
.nosotros-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--secondary);
    border: 1px solid rgba(0,0,0,0.04);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nosotros-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.nosotros-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s;
}

.nosotros-card:hover .nosotros-card-icon {
    background: var(--primary);
    color: white;
}

.nosotros-card-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.nosotros-card-content p {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.65;
    margin: 0;
}

/* CTA al final del drawer */
.nosotros-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* Modo oscuro */
body.dark .nosotros-drawer {
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}

body.dark .nosotros-card {
    border-top-color: rgba(255,255,255,0.06);
    border-right-color: rgba(255,255,255,0.06);
    border-bottom-color: rgba(255,255,255,0.06);
}

/* Responsive — en móvil el drawer ocupa todo el ancho */
@media (max-width: 480px) {
    .nosotros-drawer {
        width: 100vw;
        border-radius: 0;
    }

    .nosotros-drawer-header { padding: 1.5rem 1.25rem 1.25rem; }
    .nosotros-drawer-body   { padding: 1.25rem; gap: 1.25rem; }

    .nosotros-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Bloquear scroll del body cuando el drawer está abierto */
body.drawer-open {
    overflow: hidden;
}

/* ============================================================
   === 21. MENÚ MÓVIL (hamburguesa + desplegable)
   ============================================================ */

/* Botón hamburguesa — oculto en desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--foreground);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.2s ease,
                width 0.3s ease;
    transform-origin: center;
}

.nav-hamburger:hover {
    background: var(--secondary);
    border-color: rgba(0,0,0,0.14);
}

/* Animación a "X" cuando está abierto */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel desplegable — oculto por defecto */
.mobile-menu {
    display: none; /* solo existe en móvil */
    position: absolute;
    top: 100%;         /* justo debajo de la navbar */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
    /* Animación de apertura */
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.25s ease;
}

.mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 1rem;
}

.mobile-menu ul li a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
    border-left: 3px solid transparent;
}

.mobile-menu ul li a:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-left-color: var(--primary);
    padding-left: 1.75rem;
}

/* "Nosotros" en el menú móvil tiene una etiqueta visual */
.mobile-menu ul li a.nosotros-trigger::after {
    content: "Panel";
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Solo mostrar hamburguesa + menú móvil en pantallas pequeñas */
@media (max-width: 768px) {
    .nav-hamburger { display: flex; }

    .mobile-menu { display: block; } /* visible en DOM, oculto via max-height */
}

/* Modo oscuro */
body.dark .mobile-menu {
    background: rgba(10, 10, 26, 0.97);
}

body.dark .nav-hamburger span {
    background: var(--foreground);
}

body.dark .mobile-menu ul li a:hover {
    background: rgba(239, 25, 33, 0.1);
}