/* =========================================================
   Anass Elakhal — Design system
   Paleta: gris oscuro + blanco + dorado suave, con acento rojo de marca
   (tomado del logo). Soporta modo claro/oscuro y RTL (árabe).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=Cairo:wght@500;600;700;800&display=swap');

:root {
    /* Marca (constante en ambos temas) */
    --brand-red: #e31e24;
    --brand-red-dark: #b71419;
    --brand-dark: #25272b;
    --brand-gold: #c9a227;

    /* Tema claro (por defecto) */
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --bg-alt-2: #eef1f6;
    --text: #12192b;
    --text-muted: #5b6475;
    --border: #e3e7ee;
    --card-bg: #ffffff;
    --card-shadow: 0 2px 10px rgba(20, 20, 22, 0.06), 0 1px 2px rgba(20, 20, 22, 0.04);
    --card-shadow-hover: 0 12px 28px rgba(20, 20, 22, 0.12), 0 2px 6px rgba(20, 20, 22, 0.06);
    --accent: var(--brand-dark);
    --gold: var(--brand-gold);
    --header-bg: #25272b;
    --header-text: #ffffff;
    --header-text-muted: rgba(255, 255, 255, 0.72);
    --badge-bg: #fff4e5;
    --badge-text: #9a6b12;
    --overlay-tint: rgba(20, 20, 22, 0.55);

    --font-latin: 'Inter', 'Poppins', system-ui, sans-serif;
    --font-latin-heading: 'Poppins', 'Inter', system-ui, sans-serif;
    --font-arabic: 'Cairo', 'Inter', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --container: 1200px;
}

:root[data-theme="dark"] {
    --bg: #17181b;
    --bg-alt: #1d1f23;
    --bg-alt-2: #24262b;
    --text: #f2f4f9;
    --text-muted: #aab3c9;
    --border: #2e3034;
    --card-bg: #1c1d21;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.45);
    --accent: #ffffff;
    --gold: #e2c568;
    --header-bg: #0d0e10;
    --header-text: #ffffff;
    --header-text-muted: rgba(255, 255, 255, 0.68);
    --badge-bg: #2a2410;
    --badge-text: #e2c568;
    --overlay-tint: rgba(5, 5, 6, 0.65);
}

/* Respeta la preferencia del sistema cuando el usuario no ha elegido manualmente */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) {
        --bg: #17181b;
        --bg-alt: #1d1f23;
        --bg-alt-2: #24262b;
        --text: #f2f4f9;
        --text-muted: #aab3c9;
        --border: #2e3034;
        --card-bg: #1c1d21;
        --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
        --card-shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.45);
        --accent: #ffffff;
        --gold: #e2c568;
        --header-bg: #0d0e10;
        --header-text: #ffffff;
        --header-text-muted: rgba(255, 255, 255, 0.68);
        --badge-bg: #2a2410;
        --badge-text: #e2c568;
        --overlay-tint: rgba(5, 5, 6, 0.65);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-latin);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}

html[dir="rtl"] body { font-family: var(--font-arabic); }

h1, h2, h3, h4 { font-family: var(--font-latin-heading); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: var(--text); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { font-family: var(--font-arabic); font-weight: 800; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow { color: var(--brand-red); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin-bottom: .6em; display: block; }
.section-head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.section-head p { font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
    border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-red); color: #fff; box-shadow: 0 8px 20px rgba(227, 30, 36, .28); }
.btn-primary:hover { background: var(--brand-red-dark); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--brand-red); color: var(--brand-red); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-gold { background: var(--gold); color: #1a1405; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-whatsapp { background: #25D366; color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg); color: var(--header-text);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-block: 8px; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-link img { height: 94px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-inline-start: 12px; }
.main-nav a { color: var(--header-text-muted); font-weight: 600; font-size: .95rem; transition: color .15s ease; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08);
    color: var(--header-text); border: 1px solid rgba(255, 255, 255, .12); transition: background-color .15s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, .18); }

/* Variante para usarse sobre fondos claros de contenido (p. ej. la tarjeta de contacto) */
.value-card .icon-btn { background: var(--bg-alt-2); color: var(--text-muted); border-color: var(--border); }
.value-card .icon-btn:hover { background: var(--bg-alt-2); color: var(--brand-red); border-color: var(--brand-red); }

/* Iconos de redes sociales: más grandes que los botones genéricos del header */
.social-row { gap: 12px; }
.social-row .icon-btn { width: 48px; height: 48px; }
.social-row .icon-btn svg { width: 22px; height: 22px; }

.lang-switcher { position: relative; }
.lang-current { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: .9rem; }
.lang-menu {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
    background: var(--card-bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow-hover); min-width: 170px; padding: 6px; display: none; z-index: 50;
}
.lang-menu.open { display: block; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 6px; font-weight: 500; font-size: .92rem; color: var(--text); }
.lang-menu a:hover { background: var(--bg-alt); }
.lang-menu a.active { color: var(--brand-red); font-weight: 700; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero .container { max-width: 1760px; }
.hero {
    position: relative; overflow: hidden;
    min-height: min(92vh, 760px);
    display: flex; align-items: flex-end;
    color: #fff;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(8,9,10,.15) 0%, rgba(8,9,10,.3) 55%, rgba(8,9,10,.8) 100%);
}
.hero-content {
    position: relative; z-index: 2; max-width: 620px; margin-block: 64px 56px;
    padding: 32px 36px; border-radius: var(--radius-lg);
    background: rgba(6, 7, 9, .46);
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    border: 1px solid rgba(255,255,255,.08);
}
.hero-eyebrow { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; display: block; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); color: #fff; margin-bottom: .45em; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.hero p.lead { color: rgba(255,255,255,.88); font-size: 1.12rem; max-width: 560px; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.promo-list { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 26px 0 0; padding: 0; list-style: none; }
.promo-list li { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 16px; font-size: .88rem; font-weight: 600; color: #fff; }
.promo-list svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ---------- Tarjetas de servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 28px; box-shadow: var(--card-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex; flex-direction: column; gap: 14px; height: 100%;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: var(--brand-red); }
.service-media { margin: -28px -28px 2px; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; margin-top: -48px; margin-inline-start: 4px; position: relative; z-index: 2; border: 3px solid var(--card-bg); background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark)); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; box-shadow: 0 6px 16px rgba(227,30,36,.35); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0; }
.service-card p { font-size: .95rem; flex-grow: 1; }
.service-card .btn { align-self: flex-start; }
.service-card-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Valores / grid genérico ---------- */
.values-grid, .about-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: var(--bg-alt); border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--border); }
.value-card h4 { font-size: 1.02rem; margin-bottom: .3em; }
.value-card p { font-size: .92rem; margin: 0; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--badge-bg); color: var(--badge-text); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

/* ---------- Filtros / catálogos ---------- */
.filters-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; background: var(--bg-alt); border: 1px solid var(--border); padding: 20px; border-radius: var(--radius-md); margin-bottom: 32px; }
.filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.filter-field label { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.filter-field select, .filter-field input {
    padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--card-bg); color: var(--text); font-family: inherit; font-size: .92rem;
}
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.catalog-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--card-shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.catalog-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.catalog-card .media { aspect-ratio: 4/3; position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-alt-2), var(--bg-alt)); color: var(--text-muted); }
.catalog-card .media svg { width: 40%; height: 40%; opacity: .5; }
.catalog-card .media .badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.catalog-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.catalog-card h3 { font-size: 1.05rem; margin: 0; }
.catalog-card .price { color: var(--brand-red); font-weight: 700; font-size: 1.1rem; }
.catalog-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .82rem; color: var(--text-muted); margin: 4px 0; }
.catalog-meta span { display: inline-flex; align-items: center; gap: 4px; }
.catalog-card .actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); background: var(--bg-alt); border-radius: var(--radius-md); border: 1px dashed var(--border); }

/* ---------- CTA destacada ---------- */
.cta-panel { background: linear-gradient(135deg, var(--brand-dark), #1a1b1e); color: #fff; border-radius: var(--radius-lg); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-panel h3 { color: #fff; margin-bottom: .3em; }
.cta-panel p { color: rgba(255,255,255,.78); margin: 0; }

/* ---------- Formularios ---------- */
.form-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; box-shadow: var(--card-shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .88rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
    padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--bg); color: var(--text); font-family: inherit; font-size: .95rem; width: 100%;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text-muted); margin-bottom: 18px; }
.form-checkbox input { margin-top: 3px; }
.form-note { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .88rem; color: var(--text-muted); margin-bottom: 24px; }
.form-success { background: #ecfdf3; border: 1px solid #a9e6c0; color: #0f5f33; padding: 18px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; }
:root[data-theme="dark"] .form-success { background: #0c2318; border-color: #1f5c38; color: #7fe0a8; }

/* ---------- Listas con check ---------- */
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .96rem; }
.check-list li:last-child { border-bottom: none; }
.check-list svg { width: 18px; height: 18px; color: var(--brand-red); flex-shrink: 0; margin-top: 3px; }

/* ---------- Galería ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid .tile { aspect-ratio: 1; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--bg-alt-2), var(--bg-alt)); display: flex; align-items: center; justify-content: center; color: var(--text-muted); border: 1px solid var(--border); }
.gallery-grid .tile svg { width: 34%; height: 34%; opacity: .45; }

/* ---------- Footer ---------- */
.site-footer { background: var(--header-bg); color: var(--header-text-muted); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer img.logo-footer { height: 88px; margin-bottom: 16px; }
.site-footer p { color: var(--header-text-muted); font-size: .92rem; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--header-text-muted); font-size: .92rem; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: var(--header-text-muted); }
.social-row { display: flex; gap: 10px; margin-top: 14px; }

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp-float {
    position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 200;
    width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(37,211,102,.4);
    transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Breadcrumb / page header ---------- */
.page-header { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 40px 0; }
.page-header .eyebrow { margin-bottom: .3em; }
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .2em; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-red); }

/* ---------- Página de detalle de servicio ---------- */
.service-hero { position: relative; min-height: 320px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.service-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; z-index: 0; }
.service-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.25) 0%, rgba(10,10,11,.92) 100%); z-index: 1; }
.service-hero .container { position: relative; z-index: 2; padding-block: 40px 32px; }
.service-hero .breadcrumb { color: rgba(255,255,255,.75); margin-bottom: 12px; }
.service-hero .breadcrumb a { color: rgba(255,255,255,.92); }
.service-hero .breadcrumb a:hover { color: var(--gold); }
.service-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .3em; }
.service-hero p { color: rgba(255,255,255,.88); max-width: 640px; margin: 0; font-size: 1.05rem; }

.procedures-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 36px; }
.procedure-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; overflow: hidden; }
.procedure-media { margin: -20px -20px 16px; aspect-ratio: 16/9; overflow: hidden; }
.procedure-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.procedure-card:hover .procedure-media img { transform: scale(1.05); }
.procedure-card h3 { font-size: 1rem; margin-bottom: .35em; }
.procedure-card p { font-size: .9rem; margin: 0; }

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.faq-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq-item summary { padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--brand-red); flex-shrink: 0; transition: transform .15s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 16px; margin: 0; font-size: .95rem; }

.sources-list { margin-bottom: 36px; }
.sources-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sources-list li:last-child { border-bottom: none; }
.sources-list a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: .92rem; }
.sources-list a:hover { color: var(--brand-red); }
.sources-list svg { width: 14px; height: 14px; opacity: .6; flex-shrink: 0; }

.detail-figure { margin: 28px 0 36px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--card-shadow); }
.detail-figure img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

@media (max-width: 760px) {
    .procedures-grid { grid-template-columns: 1fr; }
}

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .two-col { grid-template-columns: 1fr; }
    .services-grid, .values-grid, .about-values-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .logo-link img { height: 66px; }
    .main-nav { position: fixed; inset: 86px 0 0 0; background: var(--header-bg); flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 4px; transform: translateY(-110%); transition: transform .2s ease; overflow-y: auto; }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .header-actions { gap: 6px; }
    .lang-current { padding: 8px 10px; font-size: .85rem; }
    .services-grid, .values-grid, .about-values-grid, .catalog-grid, .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-panel { flex-direction: column; text-align: center; }
    section { padding: 52px 0; }
    .hero { min-height: 560px; }
    .hero-content { margin-block: 32px 28px; padding: 22px 20px; }
}

/* =========================================================
   Movimiento y animaciones
   ========================================================= */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.09); }
}
@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-bg { animation: kenBurns 18s ease-out forwards; }
.hero-content > * { opacity: 0; animation: heroFadeUp .7s cubic-bezier(.22,.9,.3,1) forwards; }
.hero-content > *:nth-child(1) { animation-delay: .05s; }
.hero-content > *:nth-child(2) { animation-delay: .16s; }
.hero-content > *:nth-child(3) { animation-delay: .27s; }
.hero-content > *:nth-child(4) { animation-delay: .38s; }
.hero-content > *:nth-child(5) { animation-delay: .49s; }

.whatsapp-float { animation: pulseRing 2.6s ease-out infinite; }
.whatsapp-float:hover { animation-play-state: paused; }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.9,.3,1), transform .7s cubic-bezier(.22,.9,.3,1); transition-delay: var(--reveal-delay, 0s); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.btn { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease; }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary:active { transform: translateY(0) scale(.97); }

.value-card, .procedure-card, .catalog-card, .form-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.value-card:hover, .procedure-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }

.icon-btn svg, .lang-current svg { transition: transform .2s ease; }
.lang-menu.open ~ .lang-current svg, #lang-current[aria-expanded="true"] svg { transform: rotate(180deg); }

.faq-item summary::after { transition: transform .2s ease; }

@media (prefers-reduced-motion: reduce) {
    .hero-bg, .hero-content > *, .whatsapp-float, .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
