/* =========================================================
   Mughal Restaurant · landing page
   Paleta y tipografías de la carta impresa (versión negro y oro)
   Mobile-first · animaciones solo con transform / opacity
   ========================================================= */

/* ---------- Tipografías locales (sin dependencias externas) ---------- */
@font-face {
    font-family: 'Marcellus';
    src: url('../fonts/marcellus-latin.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost-latin.woff2') format('woff2');
    font-weight: 300 500;
    font-display: swap;
}
@font-face {
    font-family: 'Amiri';
    src: url('../fonts/amiri-arabic.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

/* ---------- Paleta y variables ---------- */
:root {
    --paper:  #0D0B09;   /* negro carbón cálido */
    --paper-2:#120F0B;
    --panel:  #19140E;
    --ink:    #F2E9D8;   /* marfil */
    --muted:  #A99E8D;
    --accent: #C9A24B;   /* oro viejo */
    --deep:   #E0C070;   /* oro de títulos */
    --bright: #E8CE8A;   /* oro del logotipo */
    --rule:   #3A3227;
    --frame:  #6B5A32;
    --error:  #D2826B;

    --ease:     cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --header-h: 72px;
    --gutter: clamp(20px, 5vw, 64px);

    --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 L13.99 7.2 L19.78 4.22 L16.8 10.01 L23 12 L16.8 13.99 L19.78 19.78 L13.99 16.8 L12 23 L10.01 16.8 L4.22 19.78 L7.2 13.99 L1 12 L7.2 10.01 L4.22 4.22 L10.01 7.2 Z' fill='%23C9A24B'/%3E%3C/svg%3E");
    /* Celosía (jali) muy sutil para los fondos */
    --jali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 6 L28 20 L42 24 L28 28 L24 42 L20 28 L6 24 L20 20 Z M0 0 L6 6 M48 0 L42 6 M0 48 L6 42 M48 48 L42 42' fill='none' stroke='%23C9A24B' stroke-opacity='.09' stroke-width='.8'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Jost', 'Segoe UI', Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.menu-abierto { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: var(--deep); }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
    outline: 2px solid var(--bright);
    outline-offset: 3px;
}

h1, h2, h3, h4 {
    font-family: 'Marcellus', 'Times New Roman', serif;
    font-weight: 400;
    color: var(--deep);
    letter-spacing: .06em;
    text-wrap: balance;
}
p { text-wrap: pretty; }
strong { font-weight: 500; color: var(--bright); }

.saltar {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--paper);
    text-decoration: none;
}
.saltar:focus { top: 12px; }

/* =========================================================
   CABECERA
   ========================================================= */
.topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--gutter);
    transition: height .4s var(--ease);
}
/* El fondo va en un pseudo-elemento: así el backdrop-filter no
   atrapa al menú móvil (position: fixed) dentro de la cabecera */
.topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(13, 11, 9, .78);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid rgba(201, 162, 75, .16);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.topbar.scrolled::before { opacity: 1; }

.marca {
    position: relative;
    z-index: 2;
    font-family: 'Marcellus', serif;
    color: var(--bright);
    text-decoration: none;
    letter-spacing: .2em;
    font-size: 15px;
    white-space: nowrap;
}
.marca span { color: var(--accent); }

/* Botón hamburguesa */
.menu-boton {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    margin-right: -12px;
    display: grid;
    place-content: center;
    gap: 7px;
    background: none;
    border: 0;
    cursor: pointer;
}
.menu-boton span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--bright);
    transition: transform .45s var(--ease), width .45s var(--ease);
}
.menu-boton span:last-child { width: 18px; margin-left: auto; }
.menu-boton[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-boton[aria-expanded="true"] span:last-child  { width: 26px; transform: translateY(-4.25px) rotate(-45deg); }

/* Menú móvil a pantalla completa */
.menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: var(--header-h) 24px 40px;
    background: var(--jali) center / 56px, radial-gradient(ellipse at 50% 40%, #1E170E 0%, var(--paper) 70%);
    background-color: var(--paper);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.menu.abierto {
    opacity: 1;
    visibility: visible;
    transition: opacity .45s var(--ease), visibility 0s;
}
.menu a {
    position: relative;
    font-family: 'Marcellus', serif;
    font-size: 30px;
    letter-spacing: .1em;
    color: var(--ink);
    text-decoration: none;
    padding: 8px 12px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.menu.abierto a {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--n, 0) * 60ms + 120ms);
}
.menu a:nth-child(1) { --n: 0; }
.menu a:nth-child(2) { --n: 1; }
.menu a:nth-child(3) { --n: 2; }
.menu a:nth-child(4) { --n: 3; }
.menu a:nth-child(5) { --n: 4; }
.menu a:nth-child(6) { --n: 5; }
.menu a.activo { color: var(--bright); }
.menu .nav-cta {
    margin-top: 18px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--accent);
    padding: 14px 34px;
}
.menu .menu-tel {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    letter-spacing: .16em;
    color: var(--muted);
}

/* =========================================================
   BOTONES
   ========================================================= */
.boton {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--paper);
    background: var(--accent);
    border: 1px solid var(--accent);
    padding: 14px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color .35s var(--ease), border-color .35s var(--ease),
                color .35s var(--ease), box-shadow .35s var(--ease), scale .2s var(--ease);
}
/* Destello que recorre el botón */
.boton::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 246, 220, .45) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .8s var(--ease);
}
.boton .flecha {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: translate .35s var(--ease);
}
.boton:active { scale: .97; }

.boton-linea {
    background: transparent;
    color: var(--bright);
    border-color: var(--frame);
}

@media (hover: hover) {
    .boton:hover {
        background: var(--bright);
        border-color: var(--bright);
        color: var(--paper);
        box-shadow: 0 10px 30px -10px rgba(232, 206, 138, .45);
    }
    .boton:hover::before { transform: translateX(120%); }
    .boton:hover .flecha { translate: 4px 0; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-h) + 36px) 20px 96px;
    text-align: center;
    overflow: hidden;
}
/* Celosía de fondo que se desvanece hacia los bordes */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--jali) center / 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 70%);
}
/* Doble marco de la carta impresa */
.hero::after {
    content: "";
    position: absolute;
    inset: 12px;
    top: calc(var(--header-h) - 4px);
    z-index: -1;
    border: 1px solid var(--frame);
    outline: 1px solid var(--rule);
    outline-offset: -9px;
    pointer-events: none;
    animation: aparecer 1.4s var(--ease) .1s both;
}
.hero-luz {
    position: absolute;
    inset: -20% -10% auto;
    height: 120%;
    z-index: -3;
    background:
        radial-gradient(40% 35% at 50% 42%, rgba(201, 162, 75, .16), transparent 70%),
        radial-gradient(30% 25% at 50% 60%, rgba(181, 83, 46, .10), transparent 70%);
    will-change: transform;
    pointer-events: none;
}
.hero-contenido { width: 100%; max-width: 920px; }

.scripts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
}
.scripts b, .starband b {
    display: block;
    width: 12px;
    height: 12px;
    background: var(--star) center / contain no-repeat;
}
.urdu {
    font-family: 'Amiri', serif;
    font-size: 24px;
    line-height: 1.4;
    color: var(--accent);
}

.hero h1 {
    font-size: clamp(40px, 12vw, 116px);
    line-height: 1;
    letter-spacing: .06em;
    text-indent: .06em;
    color: var(--bright);
    margin: 16px 0 14px;
}
.hero h1 .linea {
    display: block;
    overflow: hidden;
    padding: .04em 0 .06em;
}
.hero h1 .linea > span {
    display: inline-block;
    background: linear-gradient(180deg, #F3DEA4 0%, var(--bright) 45%, #C49A45 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: linea 1.2s var(--ease) var(--d, 0s) both;
}

.tagline {
    margin: 0;
    font-size: 11px;
    letter-spacing: .26em;
    text-indent: .26em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Taj Mahal: el trazo se dibuja al cargar */
.taj {
    width: min(520px, 86%);
    height: auto;
    margin: 36px auto 0;
    overflow: visible;
}
.taj .plinth { fill: none; stroke: var(--frame); stroke-width: 1; }
.taj .line   { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.taj .arch   { fill: none; stroke: var(--accent); }
.taj .dome   { fill: none; stroke: var(--accent); stroke-width: 1.3; }
.taj .star   { fill: var(--bright); animation: aparecer 1s var(--ease) 2.3s both; }
.taj .plinth, .taj .line, .taj .arch, .taj .dome {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: trazo 1.7s var(--ease-in-out) .6s forwards;
}
.taj .t2 { animation-delay: .8s; }
.taj .t3 { animation-delay: 1s; }
.taj .t4 { animation-delay: 1.2s; }

.starband {
    display: flex;
    justify-content: space-between;
    width: min(520px, 86%);
    margin: 26px auto 0;
}
.starband b { width: 8px; height: 8px; }
.halal {
    font-family: 'Amiri', serif;
    font-size: 24px;
    color: var(--accent);
    margin: 14px 0 0;
}

.hero-botones {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: 340px;
    margin: 30px auto 0;
}

/* Indicador para bajar */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    width: 24px;
    height: 46px;
    translate: -50% 0;
    display: none;
}
.scroll-cue span {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(var(--frame), transparent);
    overflow: hidden;
}
.scroll-cue span::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 40%;
    background: var(--bright);
    animation: cue 2.2s var(--ease-in-out) 2.4s infinite;
}

/* Animaciones de entrada del hero */
.entrada { animation: subir 1s var(--ease) var(--d, 0s) both; }

@keyframes linea   { from { transform: translateY(110%); } to { transform: none; } }
@keyframes subir   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes aparecer{ from { opacity: 0; } to { opacity: 1; } }
@keyframes trazo   { to { stroke-dashoffset: 0; } }
@keyframes cue     { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* =========================================================
   CINTA DE PLATOS
   ========================================================= */
.cinta {
    overflow: hidden;
    border-block: 1px solid var(--rule);
    background: var(--paper-2);
    padding: 16px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.cinta-pista {
    display: flex;
    width: max-content;
    animation: cinta 48s linear infinite;
}
.cinta-pista span {
    display: flex;
    align-items: center;
    font-family: 'Marcellus', serif;
    font-size: 18px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.cinta-pista span::after {
    content: "";
    width: 9px;
    height: 9px;
    margin: 0 32px;
    background: var(--star) center / contain no-repeat;
}
@keyframes cinta { to { transform: translateX(-50%); } }

/* =========================================================
   SECCIONES COMUNES
   ========================================================= */
.seccion {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(80px, 12vw, 140px) var(--gutter);
}
.seccion + .seccion::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--gutter);
    right: var(--gutter);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--frame), transparent);
}
.seccion h2 {
    font-size: clamp(32px, 5.4vw, 56px);
    line-height: 1.1;
    margin: 0 0 30px;
}
/* Doble filete bajo los títulos (jadval de los manuscritos) */
.seccion h2::after {
    content: "";
    display: block;
    width: 110px;
    height: 5px;
    margin-top: 20px;
    border-top: 2px solid var(--accent);
    border-bottom: 1px solid var(--frame);
}
.subtitulo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent);
}
.subtitulo::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    background: var(--star) center / contain no-repeat;
}

.cabecera-seccion { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.cabecera-seccion .subtitulo { justify-content: center; }
.cabecera-seccion h2 { margin-bottom: 0; }
.cabecera-seccion h2::after { margin-inline: auto; }

.texto > p:not(.subtitulo) { color: #D9CFBD; margin: 0 0 18px; }

/* =========================================================
   REVELADO AL HACER SCROLL (solo con JS)
   Se usa animation + transform; los hovers usan translate/scale
   para no chocar con el transform que deja la animación.
   ========================================================= */
html.js [data-reveal]:not(.visible) { opacity: 0; }
html.js [data-reveal].visible {
    animation: revelar 1s var(--ease) calc(var(--i, 0) * 80ms) both;
}
html.js [data-reveal="arco"].visible { animation: aparecer .6s var(--ease) both; }
html.js [data-reveal="arco"] .arco {
    clip-path: inset(100% 0 0 0 round 999px 999px 0 0);
}
html.js [data-reveal="arco"].visible .arco {
    animation: arco 1.4s var(--ease-in-out) .1s both;
}
html.js [data-reveal="arco"].visible img {
    animation: zoom-out 1.8s var(--ease) .1s both;
}
@keyframes revelar  { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes arco     { from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); } to { clip-path: inset(0 0 0 0 round 999px 999px 0 0); } }
@keyframes zoom-out { from { transform: scale(1.15); } to { transform: none; } }

/* =========================================================
   PRESENTACIÓN Y CARTA (texto + ilustración en arco)
   ========================================================= */
.presentacion, .carta {
    display: grid;
    gap: 56px;
    align-items: center;
}
.figura { margin: 0; }
.arco {
    position: relative;
    max-width: 380px;
    margin: 0 auto;
    padding: 36px 30px 0;
    border: 1px solid var(--frame);
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    background:
        radial-gradient(70% 50% at 50% 35%, rgba(201, 162, 75, .14), transparent 70%),
        linear-gradient(180deg, var(--panel), var(--paper-2));
    overflow: hidden;
    will-change: transform;
}
/* Segundo filete interior del arco */
.arco::before {
    content: "";
    position: absolute;
    inset: 9px 9px 0;
    border: 1px solid var(--rule);
    border-bottom: 0;
    border-radius: inherit;
    pointer-events: none;
}
.arco picture { display: block; }
.arco img {
    width: auto;
    max-width: 100%;
    max-height: 440px;
    height: auto;
    margin: 0 auto;
    transition: scale 1.2s var(--ease);
}
@media (hover: hover) {
    .figura:hover .arco img { scale: 1.04; }
}

.direccion-corta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted) !important;
    letter-spacing: .14em;
    font-size: 13px;
    text-transform: uppercase;
}
.direccion-corta svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.4;
}

/* Cifras animadas */
.cifras {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 36px 0 0;
    padding-top: 30px;
    border-top: 1px solid var(--rule);
}
.cifras dt {
    font-family: 'Marcellus', serif;
    font-size: clamp(26px, 7vw, 42px);
    line-height: 1.1;
    color: var(--bright);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.cifras dd {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.tarjetas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.tarjeta {
    position: relative;
    overflow: hidden;
    padding: 38px 28px 34px;
    text-align: center;
    background: linear-gradient(180deg, var(--panel) 0%, var(--paper-2) 100%);
    border: 1px solid var(--rule);
    transition: translate .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
/* Filete dorado que se dibuja arriba al pasar el ratón */
.tarjeta::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bright), transparent);
    transform: scaleX(0);
    transition: transform .6s var(--ease);
}
.tarjeta .icono {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid var(--frame);
    border-radius: 50%;
    color: var(--accent);
    background: radial-gradient(circle, rgba(201, 162, 75, .12), transparent 70%);
    transition: color .4s, border-color .4s, rotate .6s var(--ease), scale .6s var(--ease);
}
.tarjeta .icono svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tarjeta h3 { font-size: 21px; margin: 22px 0 10px; }
.tarjeta p  { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

@media (hover: hover) {
    .tarjeta:hover {
        translate: 0 -8px;
        border-color: var(--frame);
        box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(201, 162, 75, .08);
    }
    .tarjeta:hover::before { transform: scaleX(1); }
    .tarjeta:hover .icono { color: var(--bright); border-color: var(--accent); scale: 1.08; rotate: -6deg; }
}

/* =========================================================
   ESPECIALIDAD DE LA CASA
   ========================================================= */
.especialidad {
    position: relative;
    isolation: isolate;
    padding: clamp(80px, 12vw, 140px) var(--gutter);
    text-align: center;
    background:
        radial-gradient(50% 60% at 50% 50%, rgba(201, 162, 75, .12), transparent 70%),
        var(--paper-2);
    border-block: 1px solid var(--rule);
    overflow: hidden;
}
.especialidad::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--jali) center / 56px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.especialidad-marco {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(44px, 7vw, 76px) clamp(22px, 6vw, 72px);
    border: 1px solid var(--frame);
    outline: 1px solid var(--rule);
    outline-offset: -10px;
}
/* Estrellas en las esquinas del marco */
.especialidad-marco::before,
.especialidad-marco::after {
    content: "";
    position: absolute;
    top: -7px;
    width: 14px;
    height: 14px;
    background: var(--star) center / contain no-repeat;
}
.especialidad-marco::before { left: -7px; }
.especialidad-marco::after  { right: -7px; }
.especialidad .subtitulo { justify-content: center; }
.especialidad h2 {
    font-size: clamp(34px, 7vw, 76px);
    line-height: 1.05;
    color: var(--bright);
    margin: 0 0 22px;
}
.especialidad-texto {
    max-width: 540px;
    margin: 0 auto 34px;
    color: #D9CFBD;
    font-size: 17px;
}

/* =========================================================
   CARTA
   ========================================================= */
.categorias {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 36px;
}
.categorias li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-family: 'Marcellus', serif;
    font-size: 19px;
    color: var(--ink);
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    transition: color .3s, translate .4s var(--ease), border-color .3s;
}
.categorias li span {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
    .categorias li:hover { color: var(--bright); translate: 6px 0; border-color: var(--frame); }
}
.nota {
    display: flex;
    gap: 10px;
    color: var(--muted) !important;
    font-size: 14px;
    margin-top: 26px !important;
}
.nota::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    margin-top: 7px;
    background: var(--star) center / contain no-repeat;
}

/* =========================================================
   VISÍTANOS (mapa, horario, contacto)
   ========================================================= */
.visita {
    display: grid;
    gap: 28px;
}
.mapa {
    position: relative;
    min-height: 300px;
    border: 1px solid var(--frame);
    padding: 8px;
    background: var(--panel);
}
.mapa iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 284px;
    border: 0;
    /* Mapa en tonos oscuros y dorados, a juego con la web */
    filter: grayscale(1) invert(.92) sepia(.35) contrast(.9) brightness(.95);
    transition: filter .6s var(--ease);
}
.mapa:hover iframe { filter: grayscale(.3) invert(.92) sepia(.2) contrast(.95); }

.datos { display: grid; gap: 14px; }
.dato {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(180deg, var(--panel), var(--paper-2));
    border: 1px solid var(--rule);
    transition: border-color .4s;
}
.dato:hover { border-color: var(--frame); }
.dato .icono {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--frame);
    border-radius: 50%;
    color: var(--accent);
}
.dato .icono svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dato h3 {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 2px 0 6px;
}
.dato p { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.5; }
.dato p a { color: var(--ink); text-decoration: none; font-family: 'Marcellus', serif; font-size: 22px; letter-spacing: .06em; }

.enlace {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bright);
    background: linear-gradient(var(--bright), var(--bright)) left 75% / 0 1px no-repeat;
    transition: background-size .4s var(--ease);
}
.enlace .flecha {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: translate .35s var(--ease);
}
@media (hover: hover) {
    .enlace:hover { background-size: calc(100% - 22px) 1px; }
    .enlace:hover .flecha { translate: 4px 0; }
}

/* =========================================================
   FORMULARIO
   ========================================================= */
.formulario {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px 24px;
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 48px);
    background: linear-gradient(180deg, var(--panel), var(--paper-2));
    border: 1px solid var(--rule);
    text-align: left;
}
.campo { display: flex; flex-direction: column; }
.campo-ancho { grid-column: 1 / -1; }
.campo label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.campo input,
.campo select,
.campo textarea {
    font: inherit;
    font-size: 16px;   /* evita el zoom automático en iOS */
    min-height: 50px;
    color: var(--ink);
    background: rgba(13, 11, 9, .6);
    border: 1px solid var(--rule);
    padding: 12px 16px;
    border-radius: 2px;
    color-scheme: dark;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.campo textarea { resize: vertical; min-height: 120px; }
.campo input:hover,
.campo select:hover,
.campo textarea:hover { border-color: var(--frame); }
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(13, 11, 9, .9);
    box-shadow: 0 0 0 3px rgba(201, 162, 75, .18);
}
/* Error solo después de que el usuario haya interactuado */
.campo input:user-invalid { border-color: var(--error); }
.campo input:user-invalid:focus { box-shadow: 0 0 0 3px rgba(210, 130, 107, .2); }

.campo-check { flex-direction: row; align-items: flex-start; gap: 14px; }
.campo-check label {
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
    margin: 0;
    font-size: 15px;
    cursor: pointer;
}
.campo-check input {
    flex: none;
    width: 20px;
    height: 20px;
    min-height: 0;
    margin: 3px 0 0;
    accent-color: var(--accent);
    cursor: pointer;
}
.formulario .boton { grid-column: 1 / -1; justify-self: stretch; margin-top: 8px; }

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */
.pie {
    position: relative;
    text-align: center;
    padding: 90px var(--gutter) 40px;
    background:
        radial-gradient(50% 40% at 50% 0%, rgba(201, 162, 75, .08), transparent 70%),
        var(--paper-2);
    border-top: 1px solid var(--rule);
}
.khatim { width: 104px; height: auto; margin: 0 auto; }
.khatim .kh-giro {
    transform-origin: 60px 60px;
    animation: girar 80s linear infinite;
}
.khatim .kh-ln   { fill: none; stroke: var(--accent); stroke-width: 1.1; }
.khatim .kh-fino { fill: none; stroke: var(--frame); stroke-width: .6; }
.khatim .kh-oro  { fill: var(--accent); stroke: var(--bright); stroke-width: .5; }
.khatim .kh-txt  { font-family: 'Amiri', serif; font-size: 22px; fill: var(--paper); }
@keyframes girar { to { transform: rotate(360deg); } }

.pie-marca {
    font-family: 'Marcellus', serif;
    font-size: 18px;
    letter-spacing: .24em;
    color: var(--bright) !important;
    margin: 20px 0 0 !important;
}
.pie-marca span { color: var(--accent); }

.pie-columnas {
    display: grid;
    gap: 30px;
    margin: 44px auto;
    max-width: 860px;
}
.pie h4 {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 8px;
}
.pie p { margin: 0; color: var(--muted); }
.pie-columnas a { color: var(--ink); text-decoration: none; }

.pie-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    margin-bottom: 30px;
}
.pie-nav a {
    padding: 10px 12px;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .3s;
}
.pie-nav a:hover { color: var(--bright); }

.pie-legal {
    font-size: 13px;
    border-top: 1px solid var(--rule);
    padding-top: 24px;
    max-width: 760px;
    margin: 0 auto !important;
    line-height: 1.8;
}

.subir {
    position: absolute;
    right: var(--gutter);
    top: -24px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--frame);
    border-radius: 50%;
    background: var(--paper);
    color: var(--bright);
    transition: border-color .3s, translate .4s var(--ease), background-color .3s;
}
.subir svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (hover: hover) {
    .subir:hover { translate: 0 -4px; border-color: var(--bright); background: var(--panel); }
}

/* =========================================================
   BARRA DE ACCIONES MÓVIL
   ========================================================= */
.barra-movil {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13, 11, 9, .88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--rule);
    transform: translateY(110%);
    transition: transform .5s var(--ease);
}
.barra-movil.visible { transform: none; }
.barra-movil .boton { min-height: 48px; padding: 10px 16px; }
.barra-movil .boton-linea { background: var(--paper); }

/* =========================================================
   RESPONSIVE (mobile-first: de menor a mayor)
   ========================================================= */
@media (max-width: 899px) {
    .pie { padding-bottom: 110px; }   /* deja sitio a la barra móvil */
    .carta .figura { order: 2; }
}

@media (min-width: 560px) {
    .hero-botones { flex-direction: row; justify-content: center; max-width: none; }
    .tarjetas { grid-template-columns: repeat(2, 1fr); }
    .formulario { grid-template-columns: repeat(2, 1fr); }
    .formulario .boton { justify-self: center; min-width: 280px; }
    .categorias { grid-template-columns: repeat(2, 1fr); }
    .pie-columnas { grid-template-columns: repeat(3, 1fr); }
    .tagline { font-size: 13px; letter-spacing: .34em; text-indent: .34em; }
    .urdu, .halal { font-size: 30px; }
    .hero h1 { letter-spacing: .12em; text-indent: .12em; }
    .hero::after { inset: 20px; top: calc(var(--header-h) + 4px); }
}

@media (min-width: 900px) {
    :root { --header-h: 84px; }
    body { font-size: 17px; }
    .topbar.scrolled { height: 68px; }
    .marca { font-size: 18px; }

    .menu-boton { display: none; }
    .menu {
        position: static;
        flex-direction: row;
        gap: 6px;
        padding: 0;
        background: none;
        opacity: 1;
        visibility: visible;
        transition: none;
    }
    .menu a {
        opacity: 1;
        transform: none;
        font-family: 'Jost', sans-serif;
        font-size: 13px;
        font-weight: 400;
        letter-spacing: .18em;
        text-transform: uppercase;
        color: var(--muted);
        padding: 10px 14px;
    }
    /* Indicador de sección activa */
    .menu a:not(.nav-cta):not(.menu-tel)::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 4px;
        height: 1px;
        background: var(--bright);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform .45s var(--ease);
    }
    .menu a:hover, .menu a.activo { color: var(--bright); }
    .menu a:hover::after, .menu a.activo::after { transform: scaleX(1); transform-origin: left; }
    .menu .nav-cta {
        margin: 0 0 0 14px;
        padding: 11px 24px;
        font-size: 12px;
        color: var(--paper);
        transition: background-color .3s, box-shadow .3s;
    }
    .menu .nav-cta:hover { color: var(--paper); background: var(--bright); box-shadow: 0 8px 24px -10px rgba(232, 206, 138, .5); }
    .menu .menu-tel { display: none; }

    .hero { padding-bottom: 110px; }
    .hero::after { inset: 24px; top: calc(var(--header-h) + 4px); }
    .scroll-cue { display: block; }
    .taj { margin-top: 44px; }

    .presentacion { grid-template-columns: 1.2fr 1fr; gap: 90px; }
    .carta { grid-template-columns: 1fr 1.25fr; gap: 90px; }
    .tarjetas { grid-template-columns: repeat(4, 1fr); }
    .visita { grid-template-columns: 1.4fr 1fr; }
    .mapa { min-height: 100%; }

    .barra-movil { display: none; }
}

@media (min-width: 900px) and (max-height: 760px) {
    .taj { width: min(420px, 60%); margin-top: 28px; }
    .scroll-cue { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    .cinta-pista, .khatim .kh-giro, .scroll-cue span::after { animation: none !important; }
    .hero-luz, .arco { transform: none !important; }
}
