/* ============================================================
   Dubrowsky Fotografía — estilos
   Estética de póster de imprenta retro Kodak: oro plano, rojo,
   negro, tipografía display grande, sombras duras. Mobile-first.
   ============================================================ */

:root {
    --red:       #E63946;   /* rojo marca (logo, botones) */
    --red-deep:  #A8231D;   /* rojo tinta (títulos sobre oro/papel) */
    --gold:      #E8A20B;   /* oro Kodak plano */
    --gold-soft: #F0B429;
    --paper:     #F3E7C9;   /* papel envejecido */
    --cream:     #FAF3E1;
    --ink:       #181510;
    --ink-soft:  #4A4237;

    --font-display: 'Anton', 'Arial Narrow', sans-serif;
    --font-body:    'Archivo', system-ui, -apple-system, sans-serif;

    --wrap: 1080px;
    --radius: 10px;
    --hard-shadow: 4px 4px 0 var(--ink);
    --hard-shadow-sm: 3px 3px 0 var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red-deep); text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .5px; line-height: 1; text-transform: uppercase; margin: 0 0 .4em; }

.kicker {
    display: block; font-family: var(--font-body); font-weight: 700;
    font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
    margin-bottom: 10px;
}

/* ---- Tira de película (divisor) ---- */
.filmstrip--holes {
    height: 24px;
    background-color: var(--ink);
    background-image: repeating-linear-gradient(90deg,
        transparent 0 12px, var(--gold-soft) 12px 24px, transparent 24px 36px);
    background-size: 36px 9px;
    background-position: 0 center;
    background-repeat: repeat-x;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--ink);
    color: var(--cream);
    border-bottom: 3px solid var(--red);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { font-family: var(--font-body); font-weight: 900; color: var(--red); font-size: 14px; letter-spacing: .5px; line-height: .92; }
.brand__logo span { display: block; }
.brand__logo--big { font-size: 30px; }
.brand__img { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--cream); font-weight: 600; font-size: 15px; display: none; }
.nav a:hover { color: var(--gold-soft); }
.nav .btn-print-top { display: inline-block; }
.btn-print-top {
    background: var(--red); color: #fff !important; padding: 9px 16px;
    border-radius: 6px; font-weight: 700; font-size: 14px;
    border: 2px solid var(--ink); box-shadow: var(--hard-shadow-sm);
}
@media (min-width: 860px) { .nav a { display: inline-block; } }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    background: var(--gold);
    color: var(--ink);
    position: relative; overflow: hidden;
    text-align: center;
    padding: 58px 0 54px;
}
.hero::after { /* trama de medios tonos, muy sutil */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(24,21,16,.07) 1px, transparent 1px);
    background-size: 7px 7px;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__eyebrow {
    display: inline-block; background: var(--ink); color: var(--gold-soft);
    font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    font-size: 11px; padding: 7px 16px; margin-bottom: 22px;
}
.hero__logo { width: min(44vw, 200px); height: auto; margin: 0 auto 16px; }
.hero__tag {
    font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px;
    font-size: 12px; margin: 0 0 26px; color: var(--ink);
}
.hero h1 {
    font-size: clamp(40px, 9vw, 84px);
    color: var(--red-deep);
    max-width: 13ch; margin-inline: auto;
    letter-spacing: 0;
}
.hero p.lead { font-size: clamp(16px, 2.4vw, 20px); font-weight: 600; max-width: 44ch; margin: 18px auto 30px; color: var(--ink); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 700; font-size: 17px;
    padding: 14px 26px; border-radius: 8px; cursor: pointer;
    border: 2px solid var(--ink);
    transition: transform .08s ease, box-shadow .08s ease;
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--hard-shadow); }
.btn--primary:hover { background: #C92C39; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: rgba(24,21,16,.06); }
.btn--big { font-size: 19px; padding: 17px 34px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---- Frente del local (serigrafía), banda a lo ancho ---- */
.storefront { background: var(--gold); line-height: 0; }
.storefront img {
    width: 100%; height: clamp(220px, 42vw, 460px);
    object-fit: cover; object-position: center 30%;
}

/* ============================================================
   Secciones
   ============================================================ */
.section { padding: 60px 0; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--paper { background: var(--paper); }
.section__title { text-align: center; font-size: clamp(30px, 5vw, 46px); margin-bottom: 10px; }
.section__title.red { color: var(--red-deep); }
.section__sub { text-align: center; max-width: 52ch; margin: 0 auto 36px; font-weight: 500; color: var(--ink-soft); }
.section--dark .section__sub { color: var(--paper); }

/* ---- Promo del mes: cupón de imprenta ---- */
.promo {
    background: var(--gold); color: var(--ink);
    border: 3px solid var(--ink); border-radius: var(--radius);
    box-shadow: var(--hard-shadow);
    padding: 10px; text-align: center;
    max-width: 560px; margin-inline: auto;
}
.promo__inner { border: 2px dashed var(--ink); border-radius: 6px; padding: 26px 20px 30px; }
.promo__tag {
    display: inline-block; background: var(--ink); color: var(--gold-soft);
    font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    font-size: 12px; padding: 6px 14px; margin-bottom: 12px;
}
.promo__price { font-family: var(--font-display); font-size: clamp(64px, 17vw, 110px); color: var(--red-deep); line-height: .9; }
.promo__price small { font-size: .26em; letter-spacing: 1px; }
.promo__desc { font-weight: 700; font-size: 17px; margin-top: 8px; }
.promo__note { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-top: 4px; }

/* ---- Grid de tarjetas ---- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: repeat(3,1fr); } }
.card {
    background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--hard-shadow);
}
.card h3 { color: var(--red-deep); font-size: 21px; }
.card .idx {
    font-family: var(--font-display); font-size: 15px; color: var(--cream);
    background: var(--ink); width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; margin-bottom: 14px;
}
.card--star { background: var(--gold); }
.card--star .idx { background: var(--red); }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card--star p { color: var(--ink); }

/* ---- Tabla de precios (cantidades como filas: entra en el celu) ---- */
.pricing table { width: 100%; max-width: 640px; margin-inline: auto; border-collapse: separate; border-spacing: 0; background: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--hard-shadow); }
.pricing th, .pricing td { padding: 13px 10px; text-align: center; font-weight: 600; font-size: 15px; }
.pricing thead th { background: var(--red-deep); color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 17px; letter-spacing: 1px; }
.pricing tbody td, .pricing tbody th { border-top: 1px solid rgba(24,21,16,.15); }
.pricing tbody th { text-align: left; padding-left: 16px; font-size: 14px; color: var(--ink-soft); }
.pricing tbody th strong { display: block; color: var(--ink); font-size: 15px; }
.pricing tr.promo-row td, .pricing tr.promo-row th { background: var(--gold); border-top: 2px solid var(--ink); }
.pricing tr.promo-row td { font-weight: 800; color: var(--red-deep); }
.pricing tr.promo-row .promo-flag { display: inline-block; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }

/* ============================================================
   Pasos "cómo funciona"
   ============================================================ */
.steps { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4,1fr); } }
.step { text-align: center; }
.step__num {
    width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff;
    font-family: var(--font-display); font-size: 26px; display: grid; place-items: center;
    margin: 0 auto 12px; border: 2px solid var(--ink); box-shadow: var(--hard-shadow-sm);
}
.step h3 { font-size: 19px; }
.step p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ============================================================
   Galería — copias recién impresas sobre la mesa del laboratorio
   ============================================================ */
.gallery {
    display: flex; gap: 20px; overflow-x: auto;
    padding: 10px 24px 26px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }
.gallery::-webkit-scrollbar-track { background: rgba(250,243,225,.12); }
.shot {
    flex: 0 0 auto; scroll-snap-align: center; margin: 0;
    background: #fff; padding: 8px 8px 10px;
    border: 1px solid rgba(24,21,16,.35);
    box-shadow: 6px 6px 0 rgba(0,0,0,.35);
    transform: rotate(-1.2deg);
}
.shot:nth-child(even) { transform: rotate(1.1deg); }
.shot img { height: 300px; width: auto; max-width: 78vw; display: block; object-fit: cover; }
.shot figcaption { font-weight: 700; font-size: 13px; text-align: center; margin-top: 8px; color: var(--ink); }
@media (min-width: 860px) { .shot img { height: 340px; } }

/* Historia: foto del fundador + texto */
.historia-grid { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: start; margin-top: 26px; }
@media (min-width: 860px) { .historia-grid { grid-template-columns: 360px 1fr; } }
.shot--static { transform: rotate(-1.5deg); max-width: 380px; margin-inline: auto; }
.shot--static img { width: 100%; height: auto; max-width: none; }

/* ============================================================
   Contacto
   ============================================================ */
.contact dl { margin: 0; }
.contact dt {
    font-weight: 800; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--red-deep); margin-top: 16px;
}
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 4px 0 0; font-size: 16px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--cream); padding: 44px 0 28px; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .site-footer .cols { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--font-display); color: var(--gold-soft); font-size: 17px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 1px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom { text-align: center; opacity: .55; font-size: 13px; margin-top: 28px; }

/* ============================================================
   Flujo de impresión (imprimir.php)
   ============================================================ */
.flow { background: var(--paper); min-height: 100vh; padding-bottom: 130px; }
.flow__head { text-align: center; padding: 32px 0 10px; }
.flow__head h1 { color: var(--red-deep); font-size: clamp(32px,7vw,52px); }

.stepbar { display: flex; justify-content: center; gap: 8px; margin: 10px 0 26px; flex-wrap: wrap; }
.stepbar span { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 6px; background: rgba(24,21,16,.08); color: var(--ink-soft); }
.stepbar span.on { background: var(--red); color: #fff; }

.panel { background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: var(--hard-shadow); margin-bottom: 20px; }
.panel h2 { font-size: 22px; color: var(--red-deep); }
.panel input[type="text"], .panel input[type="tel"], .panel textarea {
    width: 100%; padding: 12px; border: 2px solid var(--ink); border-radius: 8px;
    margin-top: 4px; font-family: var(--font-body); font-size: 16px; background: #fff;
}
.panel label { font-weight: 600; font-size: 15px; }

/* Selector de tamaño */
.sizes { display: grid; gap: 12px; grid-template-columns: repeat(3,1fr); }
.size-opt { border: 2px solid var(--ink); border-radius: 8px; padding: 14px 8px; text-align: center; cursor: pointer; background: #fff; transition: .12s; }
.size-opt.sel { background: var(--red); color: #fff; box-shadow: var(--hard-shadow-sm); }
.size-opt strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; display: block; }
.size-opt small { font-size: 12px; opacity: .8; }

/* Zona de subida */
.dropzone {
    border: 3px dashed var(--red); border-radius: 10px; padding: 34px 18px; text-align: center;
    background: #fff; cursor: pointer; transition: .15s;
}
.dropzone.drag { background: var(--gold-soft); }
.dropzone svg { display: block; margin: 0 auto 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px,1fr)); gap: 8px; margin-top: 16px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 2px solid var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 2px; right: 2px; background: rgba(24,21,16,.75); color: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 12px; line-height: 1; }

/* Barra de cotización fija abajo */
.quote-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--ink); color: var(--cream);
    border-top: 3px solid var(--red);
}
.quote-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px; }
.quote-bar .q-total { font-family: var(--font-display); font-size: 28px; color: var(--gold-soft); line-height: 1; }
.quote-bar .q-detail { font-size: 13px; opacity: .85; }
.quote-bar .upsell { color: var(--gold-soft); font-weight: 700; font-size: 13px; }
.quote-bar .btn { flex-shrink: 0; white-space: nowrap; font-size: 15px; padding: 13px 18px; box-shadow: none; border-color: var(--red); }
@media (min-width: 560px) { .quote-bar .btn { font-size: 17px; padding: 14px 26px; } }

.hint { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* Páginas de resultado (éxito / pendiente / error) */
.result { min-height: 82vh; display: flex; align-items: center; background: var(--gold); text-align: center; position: relative; }
.result::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(24,21,16,.07) 1px, transparent 1px); background-size: 7px 7px; }
.result .wrap { position: relative; z-index: 1; }
.result h1 { font-size: clamp(36px,8vw,68px); color: var(--red-deep); }
.result p.lead { font-size: 18px; font-weight: 600; max-width: 46ch; margin: 14px auto 28px; }
.result .stamp {
    display: inline-block; font-family: var(--font-display); text-transform: uppercase;
    color: var(--red-deep); border: 3px solid var(--red-deep); border-radius: 8px;
    padding: 8px 18px; font-size: 20px; letter-spacing: 3px; transform: rotate(-4deg);
    margin-bottom: 20px;
}
