/* ============================================ */
/* VARIABLES Y RESET */
/* ============================================ */
:root {
    --primary: #00762D;
    --secondary: #159A34;
    --tertiary: #006325;
    --gold: #FFC200;
    --gold-light: #FFD521;
    --white: #FFFFFF;
    --light: #D3D3D3;
    --cream: #EAE3D3;
    --dark: #2E2D2C;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-hover: rgba(0, 118, 45, 0.06);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 6px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8f7f4 0%, #f0efe8 50%, #f8f7f4 100%);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================ */
/* TIPOGRAFÍA */
/* ============================================ */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -1px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.5px; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }

/* ============================================ */
/* UTILIDADES GENERALES */
/* ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
    z-index: 1;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    background: rgba(0, 118, 45, 0.06);
    padding: 0.3rem 1rem;
    border-radius: 50px;
}

.highlight { color: var(--primary); font-weight: 600; }
.text-primary { color: var(--primary); }
.text-gold { color: #b8860b; }
.text-danger { color: #d32f2f; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ============================================ */
/* BOTONES */
/* ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Efecto Ripple */
.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10%);
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
    pointer-events: none;
}

.btn:active::after {
    transform: scale(0);
    opacity: 1;
    transition: 0s;
}

/* Botón loading */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--glass-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 194, 0, 0.3);
}

.btn-green {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 118, 45, 0.3);
}

.btn-wsp {
    background: linear-gradient(135deg, #25D366, #1ea952);
    color: white;
}

.btn-wsp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    border-radius: 50px;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

/* Botones con iconos heredan color */
.btn .fa-solid,
.btn .fa-regular,
.btn .fa-brands {
    color: inherit;
}

.btn-wsp .fa-brands.fa-whatsapp,
.btn-green .fa-solid,
.btn-submit .fa-solid {
    color: white !important;
}

/* ============================================ */
/* ICONOS FONT AWESOME - COLOR VERDE POR DEFECTO */
/* ============================================ */
.fa-solid,
.fa-regular,
.fa-brands {
    color: var(--primary);
}

.fa-xs { font-size: 0.7rem; }
.fa-sm { font-size: 0.85rem; }
.fa-lg { font-size: 1.25rem; }
.fa-xl { font-size: 1.5rem; }
.fa-2x { font-size: 1.8rem; }
.fa-3x { font-size: 2.5rem; }

/* Iconos en navegación */
.nav-link .fa-solid {
    color: inherit;
    opacity: 0.6;
    transition: var(--transition);
}

.nav-link:hover .fa-solid {
    opacity: 1;
    color: var(--primary);
}

.nav-link.active .fa-solid {
    color: var(--primary);
    opacity: 1;
}

/* Indicador de navegación activa */
.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Iconos en tarjetas de servicio del menú */
.service-card .fa-solid,
.service-card .fa-brands {
    color: var(--primary) !important;
}

/* Iconos en tarjetas de servicio (index) */
.servicio-icon .fa-solid,
.servicio-icon .fa-brands {
    color: var(--primary);
    font-size: 1.8rem;
}

/* Iconos en footer */
.footer .fa-solid,
.footer .fa-regular,
.footer .fa-brands {
    color: inherit;
    opacity: 0.6;
}

.footer-link:hover .fa-brands.fa-whatsapp {
    color: #25D366 !important;
    opacity: 1;
}

.footer-link:hover .fa-regular.fa-envelope {
    opacity: 1;
}

/* Iconos circulares */
.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-circle .fa-solid,
.icon-circle .fa-brands {
    color: inherit;
}

.icon-circle.verde { background: rgba(0, 118, 45, 0.08); color: var(--primary); }
.icon-circle.dorado { background: rgba(255, 194, 0, 0.1); color: #b8860b; }
.icon-circle.rojo { background: rgba(211, 47, 47, 0.08); color: #d32f2f; }
.icon-circle.azul { background: rgba(21, 101, 192, 0.08); color: #1565C0; }

/* Iconos en hero */
.hero-badge .fa-solid { color: var(--gold) !important; }

/* Iconos en carrusel */
.carrusel-btn .fa-solid { color: var(--dark); }
.carrusel-slide .fa-solid { color: var(--primary) !important; opacity: 0.2; }

/* Iconos en calendario */
.evento-fecha .fa-regular { color: var(--primary); }
.evento-lugar .fa-solid { color: #999; }

/* Iconos en glosario */
.glosario-card dt .fa-solid { color: var(--primary); }

/* Iconos en contacto */
.contacto-card h3 .fa-solid { color: var(--primary); }

/* ============================================ */
/* TARJETAS DE SERVICIO (INDEX) */
/* ============================================ */
.servicio-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
    z-index: 1;
    pointer-events: none;
}

.servicio-card:hover::before {
    left: 100%;
}

.servicio-card:nth-child(1) { animation-delay: 0.1s; }
.servicio-card:nth-child(2) { animation-delay: 0.2s; }
.servicio-card:nth-child(3) { animation-delay: 0.3s; }
.servicio-card:nth-child(4) { animation-delay: 0.4s; }
.servicio-card:nth-child(5) { animation-delay: 0.5s; }
.servicio-card:nth-child(6) { animation-delay: 0.6s; }

.servicio-card:hover,
.servicio-card:focus {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 118, 45, 0.2);
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.servicio-card h3 { font-size: 1.1rem; font-weight: 600; }
.servicio-card p { font-size: 0.85rem; color: #777; line-height: 1.5; }

/* ============================================ */
/* TARJETAS GENÉRICAS */
/* ============================================ */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
    z-index: 1;
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

/* ============================================ */
/* NOTAS Y ALERTAS */
/* ============================================ */
.nota-card {
    background: rgba(255, 194, 0, 0.06);
    border: 2px solid rgba(255, 194, 0, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.nota-card .fa-solid { color: #b8860b; flex-shrink: 0; }

.alerta-card {
    background: rgba(211, 47, 47, 0.04);
    border: 2px solid rgba(211, 47, 47, 0.15);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: #d32f2f;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.alerta-card .fa-solid { color: #d32f2f; flex-shrink: 0; margin-top: 2px; }

/* ============================================ */
/* BADGES Y ETIQUETAS */
/* ============================================ */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.badge-verde { background: rgba(0, 118, 45, 0.08); color: var(--primary); }
.badge-dorado { background: rgba(255, 194, 0, 0.1); color: #b8860b; }
.badge-rojo { background: rgba(211, 47, 47, 0.08); color: #d32f2f; }

.plazo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(211, 47, 47, 0.06);
    color: #d32f2f;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.plazo-badge .fa-solid { color: #d32f2f; }

.tag {
    display: inline-block;
    background: white;
    border: 1px solid #e0d5b0;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--dark);
    font-weight: 500;
}

/* ============================================ */
/* FORMULARIOS */
/* ============================================ */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 118, 45, 0.08);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group input:disabled,
.form-group textarea:disabled {
    background: rgba(0, 0, 0, 0.03);
    cursor: not-allowed;
}

/* ============================================ */
/* TABLAS */
/* ============================================ */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
}

thead th {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

tbody td {
    padding: 0.7rem 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

tbody tr:hover { background: rgba(0, 118, 45, 0.03); }

tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--dark);
}

/* ============================================ */
/* MODAL */
/* ============================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-container {
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 900px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 { font-size: 1.1rem; font-weight: 600; }

.modal-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #666;
}

.modal-close:hover { background: #e5e5e5; color: var(--dark); }

.modal-body { flex: 1; overflow: hidden; }
.modal-body iframe { width: 100%; height: 100%; border: none; }

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.footer-column h4 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.footer-column a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: var(--transition);
    line-height: 1.5;
}

.footer-column a:hover { color: var(--gold-light); }

.footer-icon {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.footer-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    cursor: pointer;
}

.footer-link:hover { color: #25D366 !important; }

.footer-link:hover .fa-brands.fa-whatsapp {
    opacity: 1;
    color: #25D366;
}

.footer-link span { line-height: 1.5; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 1280px;
    margin: 0 auto;
}

/* ============================================ */
/* SKIP LINK (ACCESIBILIDAD) */
/* ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 1001;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus { top: 0; }

/* ============================================ */
/* ANIMACIONES SCROLL */
/* ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes de animación */
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
.animate-fade-left { animation: fadeInLeft 0.6s ease forwards; opacity: 0; }
.animate-scale { animation: scaleIn 0.4s ease forwards; opacity: 0; }

/* ============================================ */
/* BOTÓN VOLVER ARRIBA */
/* ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 118, 45, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 118, 45, 0.4);
}

.scroll-top-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================ */
/* INDICADOR DE SCROLL */
/* ============================================ */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    z-index: 1002;
    transition: width 0.1s;
    border-radius: 0 2px 2px 0;
}

/* ============================================ */
/* OVERLAY MENÚ MÓVIL */
/* ============================================ */
@media (max-width: 1024px) {
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ============================================ */
/* KEYFRAMES */
/* ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================ */
/* PLACEHOLDER SHIMMER */
/* ============================================ */
.image-placeholder {
    background: linear-gradient(90deg, rgba(0,118,45,0.03) 25%, rgba(0,118,45,0.06) 50%, rgba(0,118,45,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s ease infinite;
    border-radius: var(--radius-md);
}

/* ============================================ */
/* HERO OVERLAY DEGRADADO */
/* ============================================ */
.hero-carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(to top, rgba(248,247,244,0.3), transparent);
    z-index: 1;
    pointer-events: none;
}

/* ============================================ */
/* RESPONSIVE BASE */
/* ============================================ */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .card, .glass-card {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }
    .scroll-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    section {
        padding: 3rem 1rem;
    }
}

/* ============================================ */
/* PREFERENCIAS DE USUARIO */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary: #005a1f;
        --secondary: #0d7a2a;
        --tertiary: #004a1a;
    }
    .glass-card,
    .card,
    .servicio-card {
        background: white;
        border: 2px solid var(--dark);
    }
}