/* =============================================================
   cholula-cuadros.css
   Sección "cuadros sublimados" — /telas/tela-cholula
   Arletex Design System v3.5
   -------------------------------------------------------------
   Registro:  @gallery (la imagen manda)
   Apertura:  Dossier minimizado (eyebrow stamp)
   Marco:     Bleed-edge (fondo pleno full-width, sin marco)
   Hover:     lift-orange con scale 1.02 (excepción canónica de
              @gallery) · press-chunky y ghost-fill en las CTAs
   -------------------------------------------------------------
   Va entre el banner-llegada (ink) y el cross-sell (white): el
   fondo paper corta la cadena de bloques oscuros.
   Prefijo de clases: .chq-*  (cholula · cuadros)
   Tokens --ax-* heredados de landing-producto.css (cargar antes).
   ============================================================= */


/* =============================================================
   §1. Bloque — pared clara de galería, full-width sin overflow
   ============================================================= */
.chq {
    position: relative;
    background: var(--ax-paper, #FAF6EE);
    color: var(--ax-ink, #1F2530);
    padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 56px);
    border-top: 2px solid var(--ax-orange, #F15A29);
    overflow: hidden;
}

.chq__inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    gap: clamp(32px, 5vw, 56px);
}

/* Móvil: apertura → lienzos → prosa y CTAs (la imagen no queda al final). */
.chq__head { order: 1; }
.chq__wall { order: 2; }
.chq__body { order: 3; }

@media (min-width: 992px) {
    .chq__inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        grid-template-areas:
            "head wall"
            "body wall";
        /* La fila 1 toma su alto natural; la 2 absorbe el resto del alto
           que impone la pared, sin abrir un hueco bajo el lead. */
        grid-template-rows: auto 1fr;
        align-items: start;
        column-gap: clamp(32px, 5vw, 64px);
        row-gap: 0;
    }
    .chq__head { grid-area: head; }
    .chq__body { grid-area: body; }
    .chq__wall { grid-area: wall; align-self: center; }
}


/* =============================================================
   §2. Apertura — stamp + título Anton con <em> Fraunces
   ============================================================= */
.chq__stamp::before {
    background: var(--ax-orange-deep, #B0401A);
    color: var(--ax-white, #FFFFFF);
    border-color: var(--ax-orange-deep, #B0401A);
}

.chq__title {
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.02;
    font-size: clamp(1.8rem, 1.15rem + 2.9vw, 3.3rem);
    color: var(--ax-ink, #1F2530);
    margin: 14px 0 0;
}

.chq__title em {
    font-family: var(--ax-font-accent, 'Fraunces', Georgia, serif);
    font-style: italic;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0;
    color: var(--ax-orange, #F15A29);
}

.chq__lead {
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: clamp(15px, 14px + 0.25vw, 17px);
    line-height: 1.65;
    color: var(--ax-ink, #1F2530);
    max-width: 60ch;
    margin: 18px 0 0;
}

.chq__lead strong { font-weight: 700; }


/* =============================================================
   §3. La pared — dos lienzos escalonados
   ============================================================= */
.chq__wall {
    position: relative;
    display: flex;
    flex-direction: column;
}

.chq-frame { margin: 0; }

/* Lienzo mayor a la izquierda, el menor desplazado a la derecha. */
.chq-frame--hero { width: 84%; }
.chq-frame--sec  { width: 66%; margin-left: auto; margin-top: clamp(16px, 2vw, 26px); }

/* Riel de colgado: línea tenue detrás de los lienzos. */
.chq__wall::before {
    content: "";
    position: absolute;
    left: -6%;
    right: -6%;
    top: 0;
    height: 2px;
    background: var(--ax-rule, #E5E1D7);
    z-index: 0;
}

.chq-frame { position: relative; z-index: 1; }


/* — El lienzo: bastidor con canto sólido, radius 0 (N-06/N-07) — */
.chq-frame__canvas {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ax-white, #FFFFFF);
    border: 2px solid var(--ax-ink, #1F2530);
    box-shadow: 8px 8px 0 var(--ax-ink, #1F2530);
    overflow: hidden;
    transform: translate(0, 0);
    transition:
        transform var(--ax-motion-base, 240ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1)),
        box-shadow var(--ax-motion-base, 240ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1));
}

.chq-frame__canvas img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hover @gallery: lift-orange + scale 1.02 (excepción del registro). */
.chq-frame__canvas:hover,
.chq-frame__canvas:focus-within {
    transform: translate(-3px, -3px) scale(1.02);
    box-shadow: 12px 12px 0 var(--ax-orange, #F15A29);
}


/* — Placeholder mientras no existan las fotografías — */
.chq-frame__ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 12px;
    background: var(--ax-cream, #F2EDE4);
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0 10px,
        rgba(31, 37, 48, .06) 10px 20px
    );
}

.chq-frame__ph i {
    font-size: clamp(24px, 3.4vw, 42px);
    color: var(--ax-orange, #F15A29);
}

.chq-frame__ph-code {
    font-family: var(--ax-font-mono, 'JetBrains Mono', ui-monospace, monospace);
    font-size: clamp(10px, 9px + 0.35vw, 13px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ax-muted, #6E6A60);
}

/* Cinta de esquina: deja claro que es un hueco reservado. */
.chq-frame__ph::after {
    content: "Imagen pendiente";
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 4px 8px;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--ax-ink, #1F2530);
    color: var(--ax-paper, #FAF6EE);
}


/* — Caption visible siempre (nunca solo en hover: SEO + a11y) — */
.chq-frame__cap {
    font-family: var(--ax-font-accent, 'Fraunces', Georgia, serif);
    font-style: italic;
    font-size: clamp(12px, 11px + 0.3vw, 14px);
    line-height: 1.45;
    color: var(--ax-muted, #6E6A60);
    margin-top: 14px;
    padding-left: 10px;
    border-left: 2px solid var(--ax-orange, #F15A29);
    text-align: left;
}


/* =============================================================
   §4. Prosa, nota y sub-bloque
   ============================================================= */
.chq__text {
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: clamp(14.5px, 14px + 0.2vw, 16px);
    line-height: 1.7;
    color: var(--ax-ink, #1F2530);
    max-width: 62ch;
    margin: 16px 0 0;
}

.chq__text strong { font-weight: 700; }

.chq__text a {
    color: var(--ax-orange-deep, #B0401A);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.chq__text a:hover { color: var(--ax-ink, #1F2530); }

/* Nota operativa: papel pegado con regla naranja. */
.chq__note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 62ch;
    margin: 24px 0;
    padding: 14px 18px;
    background: var(--ax-white, #FFFFFF);
    border: 2px solid var(--ax-ink, #1F2530);
    border-left: 5px solid var(--ax-orange, #F15A29);
}

.chq__note > i {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 16px;
    color: var(--ax-orange, #F15A29);
}

.chq__note p {
    margin: 0;
    font-family: var(--ax-font-body, 'Lato', system-ui, sans-serif);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ax-ink, #1F2530);
}

.chq__subtitle {
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
    font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.5rem);
    color: var(--ax-ink, #1F2530);
    max-width: 62ch;
    margin: 28px 0 0;
    padding-top: 16px;
    border-top: 2px solid var(--ax-orange, #F15A29);
}


/* =============================================================
   §5. CTAs — press-chunky (WhatsApp) + ghost-fill (interlink)
   ============================================================= */
.chq__ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: clamp(24px, 3.4vw, 34px);
}

.chq__cta,
.chq__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 26px;
    font-family: var(--ax-font-display, 'Anton', 'Arial Narrow', sans-serif);
    font-weight: 400;
    font-size: clamp(0.85rem, 0.75rem + 0.35vw, 1.05rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    text-decoration: none;
    border-radius: 0;
    transform: translateY(0);
    transition:
        transform var(--ax-motion-fast, 180ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1)),
        box-shadow var(--ax-motion-fast, 180ms) var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1)),
        background-color var(--ax-motion-fast, 180ms) ease,
        color var(--ax-motion-fast, 180ms) ease;
}

/* press-chunky */
.chq__cta {
    background: var(--ax-whatsapp, #25D366);
    color: var(--ax-ink, #1F2530);
    border: 2px solid var(--ax-ink, #1F2530);
    box-shadow: 0 6px 0 var(--ax-whatsapp-deep, #0F8C40);
}

.chq__cta:hover,
.chq__cta:focus {
    color: var(--ax-ink, #1F2530);
    text-decoration: none;
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--ax-whatsapp-deep, #0F8C40);
}

/* ghost-fill sobre claro */
.chq__link {
    background: var(--ax-white, #FFFFFF);
    color: var(--ax-ink, #1F2530);
    border: 2px solid var(--ax-ink, #1F2530);
    box-shadow: 0 5px 0 var(--ax-ink, #1F2530);
}

.chq__link:hover,
.chq__link:focus {
    background: var(--ax-ink, #1F2530);
    border-color: var(--ax-ink, #1F2530);
    color: var(--ax-paper, #FAF6EE);
    text-decoration: none;
    transform: translateY(3px);
    box-shadow: 0 2px 0 var(--ax-ink, #1F2530);
}

.chq__link-arrow { transition: transform 200ms var(--ax-ease-out, cubic-bezier(.22, 1, .36, 1)); }
.chq__link:hover .chq__link-arrow { transform: translateX(4px); }

.chq__cta:focus-visible,
.chq__link:focus-visible,
.chq-frame__canvas:focus-visible {
    outline: 2px solid var(--ax-orange, #F15A29);
    outline-offset: 3px;
}


/* =============================================================
   §6. Motion reducido y móvil
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    .chq-frame__canvas,
    .chq__cta,
    .chq__link,
    .chq__link-arrow {
        transition: none;
    }
    .chq-frame__canvas:hover,
    .chq-frame__canvas:focus-within {
        transform: none;
        box-shadow: 12px 12px 0 var(--ax-orange, #F15A29);
    }
    .chq__cta:hover,
    .chq__cta:focus,
    .chq__link:hover,
    .chq__link:focus { transform: none; }
}

@media (max-width: 575.98px) {
    .chq { padding: 36px 16px; }
    .chq__wall::before { display: none; }
    .chq-frame--hero { width: 92%; }
    .chq-frame--sec  { width: 72%; }
    .chq-frame__canvas { box-shadow: 6px 6px 0 var(--ax-ink, #1F2530); }
    .chq-frame__canvas:hover,
    .chq-frame__canvas:focus-within {
        transform: translate(-2px, -2px);
        box-shadow: 8px 8px 0 var(--ax-orange, #F15A29);
    }
    .chq__ctas > .chq__cta,
    .chq__ctas > .chq__link { width: 100%; }
}
