@import url('/fonts/jost/jost.css');
@import url('/fonts/cormorant-garamond/cormorant-garamond.css');

/* ═══════════════════════════════════════════════════════════════
   Alba — web de fotógrafa (bodas, familias, retratos) con varias páginas
   Re-tematizar = cambiar los tokens de :root (o elegir una paleta en
   «Ajustes › Colores de tu web»). Los iconos .i-* los genera build.py.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #F5F1EA;
  --surface: #FBF8F3;
  --ink: #1C1A17;
  --ink-2: #46403A;
  --muted: #665E56;
  --line: #E3DBCF;
  --tint: #ECE5D9;
  --accent: #7E5434;
  --accent-2: #633F24;
  --soft: #EBDCCB;
  --wa: var(--accent);
  --r: 4px;
  --wrap: 1280px;
  --head-h: 76px;
  /* Cormorant Garamond (títulos, editorial) + Jost (texto y botones). Locales, en /fonts */
  --serif: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* La fuente se HEREDA (no `* { font-family }`): así los <span> editables dentro de un título toman su serif.
   También en body: en el editor y la vista previa el body de la plataforma trae su propia fuente */
* { box-sizing: border-box; }
html, body, button, input, select, textarea { font-family: 'Jost', 'Montserrat', system-ui, sans-serif; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lb-lock, html.lb-lock body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd, fieldset, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--ink); color: #fff; text-decoration: none; }
.skip-link:focus { top: 12px; }
.i { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ─── Tipografía ─── */
.eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.sec-title, .db-title, .ft-big, .hero-title { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.04; }
.sec-title { margin-top: 12px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.sec-lead { margin-top: 16px; max-width: 60ch; color: var(--ink-2); font-size: 1.05rem; }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.ht-2 { font-style: italic; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .82rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ─── Botones (≥ 44 px): rectos, texto espaciado, como las webs editoriales ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border: 1px solid transparent; border-radius: var(--r); font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.btn .i { width: 18px; height: 18px; }
.btn .i-arrow { transition: transform .25s var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); }
.btn-line { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { min-height: 56px; padding-inline: 32px; }
.btn-sm { min-height: 44px; padding: 10px 18px; }
.btn-block { width: 100%; }

/* ─── Páginas: cada sección dice en qué vistas aparece (pg-home, pg-portfolio…). Sin JS: el inicio ─── */
main > .pg { display: none; }
html:not([class*="vw-"]) .pg-home,
html.vw-home .pg-home, html.vw-portfolio .pg-portfolio, html.vw-stories .pg-stories, html.vw-story .pg-story,
html.vw-packages .pg-packages, html.vw-about .pg-about, html.vw-contact .pg-contact { display: block; }
html:not(.vw-portfolio) .only-portfolio, html:not(.vw-stories) .only-stories, html:not(.vw-story) .only-story { display: none; }
html:is(.vw-portfolio, .vw-stories, .vw-story) .only-home { display: none; }
main > .pg { scroll-margin-top: var(--head-h); }
.ed-note { display: none; }
body:not(.tm-preview-mode) #tm-template-container .ed-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 18px; padding: 12px 16px; border: 1px dashed var(--accent); background: var(--surface); color: var(--ink-2); font-size: .9rem; }
.ed-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.ed-btn-line { background: transparent; color: var(--accent); }
html:is(.vw-portfolio, .vw-stories, .vw-story, .vw-about) .ed-note { display: none !important; }

/* Selector de página: solo en el editor (ahí los enlaces son texto y no navegan) */
/* Selector de página: solo en el editor (ahí los enlaces son texto y no navegan). Estilo de Zipeea (no de la
   plantilla): letra del sistema, negro #141414, verde #00E676; el <select> guarda las opciones y no se ve */
.pg-switch { display: none; }
body:not(.tm-preview-mode) #tm-template-container .pg-switch { position: fixed; left: 50%; bottom: 20px; z-index: 88; display: block; transform: translateX(-50%); max-width: calc(100vw - 24px); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: normal; text-transform: none; }
.pg-switch-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; background: #141414; color: #fff; border-radius: 18px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55); }
.pg-switch-pick { position: relative; display: flex; align-items: center; gap: 8px; }
.pg-switch-label { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.pg-switch select { display: none; }
.pg-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; min-width: 190px; padding: 6px 12px 6px 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #0f172a; font: 700 14px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; cursor: pointer; }
.pg-btn:hover { border-color: #00E676; }
.pg-btn:focus-visible { outline: 3px solid #00E676; outline-offset: 2px; }
.pg-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #00E676; box-shadow: 0 0 0 3px rgba(0, 230, 118, .2); }
.pg-btn-t { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.pg-caret { flex: none; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #0f172a; transition: transform .2s; }
.pg-btn[aria-expanded="true"] .pg-caret { transform: rotate(180deg); }
.pg-menu { position: absolute; left: 0; bottom: calc(100% + 10px); display: grid; gap: 2px; width: min(340px, calc(100vw - 24px)); max-height: min(62vh, 520px); overflow-y: auto; padding: 6px; border-radius: 14px; background: #fff; color: #0f172a; box-shadow: 0 24px 60px -16px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .06); }
.pg-menu[hidden] { display: none; }
.pg-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.pg-opt { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pg-opt b { font-size: 14px; font-weight: 700; }
.pg-opt small { grid-column: 2; font-size: 12px; color: #64748b; line-height: 1.35; }
.pg-opt::before { content: ''; grid-row: span 2; width: 16px; height: 16px; }
.pg-opt:hover, .pg-opt:focus-visible { outline: none; background: #f0fdf4; }
.pg-opt[aria-selected="true"] { background: #00E676; }
.pg-opt[aria-selected="true"] small { color: #14532d; }
.pg-opt[aria-selected="true"]::before { background: #0f172a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.pg-tools { display: contents; }
.pt { display: none; align-items: center; min-height: 40px; padding: 6px 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font: 600 13px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; white-space: nowrap; cursor: pointer; }
.pt:hover { background: rgba(255, 255, 255, .22); }
.pt-danger { background: transparent; color: #fca5a5; }
html.vw-portfolio .pt-portfolio, html.vw-stories .pt-stories, html.vw-story .pt-story, html.vw-packages .pt-packages, html.vw-about .pt-about { display: inline-flex; }
@media (max-width: 768px) { body:not(.tm-preview-mode) #tm-template-container .pg-switch { bottom: calc(84px + env(safe-area-inset-bottom)); } .pg-switch-label { display: none; } .pg-btn { min-width: 160px; } }
body:not(.tm-preview-mode) #tm-template-container .footer { padding-bottom: 110px; }

/* ─── Cabecera: transparente sobre el hero del inicio, sólida en el resto ─── */
.header { position: sticky; top: 0; z-index: 60; height: var(--head-h); background: var(--bg); border-bottom: 1px solid var(--line); transition: background-color .35s, border-color .35s, color .35s; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .header-inner { padding-inline: 32px; } }
html.vw-home .header.is-over { background: transparent; border-color: transparent; color: #fff; }
html.vw-home .header.is-over .main-menu a { color: #fff; }
html.vw-home .header.is-over .btn-head { border-color: rgba(255, 255, 255, .8); color: #fff; }
html.vw-home .header.is-over .nav-toggle span { background: #fff; }
.logo { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; white-space: nowrap; color: inherit; }
.logo img { max-height: 48px; width: auto; }
.btn-head { min-height: 44px; padding: 10px 18px; border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-head:hover { background: var(--ink); color: #fff; }
html.vw-home .header.is-over .btn-head:hover { background: #fff; color: var(--ink); }

/* Menú (base) — DEBE ir antes de las reglas móviles: sus @media lo ocultan en el celular */
.main-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); transition: color .2s; }
.main-menu a:hover, .main-menu a[aria-current="page"] { color: var(--accent); }
html.vw-home .header.is-over .main-menu a[aria-current="page"] { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); }
@media (max-width: 1060px) {
  .main-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35); }
  .main-menu.menu-open { display: flex; }
  .main-menu a, html.vw-home .header.is-over .main-menu a { min-height: 52px; padding: 12px 4px; color: var(--ink); font-size: .9rem; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
  .header-actions, .main-menu + .header-actions { margin-left: auto; }
}
@media (max-width: 520px) { .btn-head { display: none; } :root { --head-h: 64px; } .logo { font-size: 1.45rem; } }

/* ─── Hero: fotos a sangre que se turnan; el texto no tapa los clics sobre las fotos (editor) ─── */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 1100px; margin-top: calc(-1 * var(--head-h)); color: #fff; background: #1b1814; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-on { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero-slide.is-on img { transform: scale(1); }
.hero-cap { position: absolute; right: 32px; bottom: 40px; z-index: 3; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 0 18px rgba(0, 0, 0, .5); }
.hero-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none;
  /* Legible con cualquier foto que suba la dueña: arriba (menú), abajo y a la izquierda (donde va el texto).
     --shade sube cuando la foto es clara (el script mide la zona del texto: .is-light) */
  --shade: .55;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, calc(var(--shade) * .9)) 0%, rgba(0, 0, 0, calc(var(--shade) * .45)) 45%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, calc(var(--shade) + .15)) 100%);
  transition: --shade .6s; }
.hero.is-light .hero-overlay { --shade: .75; }
.hero-overlay :is(p, h1, a, button, span) { pointer-events: auto; }
.hero-inner { padding-bottom: 28px; }
.hero-text { max-width: 760px; }
.hero-eyebrow { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: #fff; }
.hero-text { text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 24px rgba(0, 0, 0, .35); }
.hero-title { margin-top: 18px; font-size: clamp(3rem, 8vw, 6.6rem); line-height: .98; }
.hero-title span { display: block; }
.hero-lead { margin-top: 22px; max-width: 46ch; font-size: 1.12rem; color: #fff; }
.hero-text .btn { text-shadow: none; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 28px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dots button::before { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: rgba(255, 255, 255, .4); }
.hero-dots button[aria-current="true"]::before { background: #fff; }
.hero-down { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; }
.hero-down .i { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.hero-edit { display: none; }
body:not(.tm-preview-mode) #tm-template-container .hero-edit { position: absolute; top: calc(var(--head-h) + 16px); right: 16px; z-index: 4; display: grid; gap: 10px; width: min(340px, calc(100% - 32px)); padding: 14px; border-radius: 14px; background: rgba(20, 16, 12, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; pointer-events: auto; }
.hero-edit-t { font-size: .9rem; }
.hero-edit-t small { display: block; margin-top: 2px; font-size: .78rem; color: rgba(255, 255, 255, .8); }
.hero-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-thumbs button { position: relative; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; }
.hero-thumbs button[aria-current="true"] { border-color: #fff; }
.hero-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumbs span { position: absolute; left: 4px; bottom: 2px; font-size: .75rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.hero-edit-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-edit-del { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: #ffb4a8; font-size: .85rem; font-weight: 600; cursor: pointer; }
.hero-edit-del:hover { background: rgba(255, 255, 255, .12); }
.hero-edit-del[hidden] { display: none; }
.hero-edit-add { justify-self: start; min-height: 40px; padding: 8px 14px; border: 1px dashed rgba(255, 255, 255, .7); border-radius: 999px; background: transparent; color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; }
.hero-edit-add:hover { background: rgba(255, 255, 255, .15); }
@media (max-width: 700px) {
  .hero { min-height: 600px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, calc(var(--shade) * .5)) 45%, rgba(0, 0, 0, calc(var(--shade) + .2)) 100%); }
  .hero-cap { display: none; }
  .hero-ctas .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; font-size: .75rem; letter-spacing: .08em; }
  .hero-ctas .btn .i { display: none; }
  .hero-lead { font-size: 1rem; }
}

/* ─── Hola (inicio) ─── */
.intro { padding: clamp(72px, 10vw, 140px) 0; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro-p { margin-top: 22px; max-width: 54ch; color: var(--ink-2); font-size: 1.08rem; }
.intro-sign { margin: 18px 0 20px; font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--accent); }
@media (max-width: 820px) { .intro-grid { grid-template-columns: 1fr; } .intro-photo img { aspect-ratio: 5 / 4; } }

/* ─── Sobre mí ─── */
.about { padding: clamp(48px, 7vw, 100px) 0 clamp(64px, 8vw, 110px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photo { position: sticky; top: calc(var(--head-h) + 24px); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-title { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.about-p { margin-top: 20px; max-width: 58ch; color: var(--ink-2); font-size: 1.08rem; }
.facts { display: grid; gap: 10px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.fact { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.fact .i { color: var(--accent); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0; margin-top: clamp(56px, 8vw, 100px); border-top: 1px solid var(--line); }
.value { padding: 32px 28px 8px 0; }
.value-title { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1.1; }
.value-text { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-photo { position: static; } .about-photo img { aspect-ratio: 5 / 4; } }

/* ─── Cifras: una franja dividida ─── */
.stats { padding: 0 0 clamp(56px, 7vw, 96px); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 30px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-n { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 500; line-height: 1; }
.stat-l { margin-top: 8px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(auto-fit, minmax(min(96px, 100%), 1fr)); } .stat { padding: 22px 6px; } .stat-l { letter-spacing: .04em; } }

/* ─── Lo que fotografío ─── */
.cats { padding: clamp(64px, 8vw, 110px) 0; background: var(--surface); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px 24px; }
.cat { position: relative; display: block; text-decoration: none; color: var(--ink); }
.cat-img { display: block; overflow: hidden; }
.cat-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.04); }
.cat-body { display: grid; gap: 4px; padding: 18px 44px 0 0; }
.cat-name { font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1.05; }
.cat-line { color: var(--ink-2); font-size: .98rem; }
.cat-from { display: flex; gap: 6px; margin-top: 4px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cat > .i { position: absolute; right: 4px; bottom: 30px; width: 22px; height: 22px; transition: transform .25s var(--ease); }
.cat:hover > .i { transform: translateX(4px); }
/* En el celular: tarjetas horizontales en una columna (foto pequeña a la izquierda) */
@media (max-width: 640px) {
  .cat { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
  .cat-img img { aspect-ratio: 4 / 5; }
  .cat-body { padding: 0 30px 0 0; }
  .cat-name { font-size: 1.6rem; }
  .cat-line { font-size: .92rem; }
  .cat > .i { bottom: auto; top: 50%; translate: 0 -50%; }
  .cat-grid { gap: 16px; }
}

/* ─── Portafolio ─── */
.port { padding: clamp(64px, 8vw, 110px) 0; }
html.vw-portfolio .port { padding-top: clamp(40px, 5vw, 64px); min-height: 80vh; }
.port-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.port-head .sec-head { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip-grid { display: contents; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; letter-spacing: .06em; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.port-count { margin-bottom: 24px; font-size: .84rem; color: var(--muted); }
/* Mampostería con columnas: cada foto conserva su forma (vertical u horizontal) */
.photos { columns: 3 300px; column-gap: 16px; }
.ph { position: relative; break-inside: avoid; margin-bottom: 16px; overflow: hidden; background: var(--tint); }
.ph img { width: 100%; height: auto; transition: transform 1.2s var(--ease), opacity .3s; cursor: zoom-in; }
.ph:hover img { transform: scale(1.03); }
.ph-txt { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; opacity: 0; transition: opacity .3s; pointer-events: none; }
.ph:hover .ph-txt, .ph:focus-within .ph-txt { opacity: 1; }
.ph-txt > * { pointer-events: auto; }
.ph-cat { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.ph-cap { font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; }
.ph-cap:empty { display: none; }
body:not(.tm-preview-mode) #tm-template-container .ph-txt { opacity: 1; }
.ph.is-off { display: none; }
html:not(.vw-portfolio) .photos > .ph:nth-child(n+9) { display: none; }
html:not(.vw-portfolio) #tm-template-container .photos > :not(.ph) { display: none !important; }
@media (max-width: 560px) {
  .photos { columns: 1; }
  .photos.is-m2 { columns: 2; column-gap: 8px; }
  .photos.is-m2 .ph { margin-bottom: 8px; }
  .photos.is-m2 .ph-txt { display: none; }
  .ph-txt { opacity: 1; position: static; padding: 10px 0 0; background: none; color: var(--ink); }
  .ph { background: none; }
  .ph-cat { color: var(--accent); }
  /* En el inicio, las fotos destacadas van de a dos (solo fotos): la página no se alarga */
  html:not(.vw-portfolio) .photos { columns: 2; column-gap: 8px; }
  html:not(.vw-portfolio) .photos .ph { margin-bottom: 8px; }
  html:not(.vw-portfolio) .photos .ph-txt { display: none; }
}

/* ─── Historias ─── */
.stories-sec { padding: clamp(64px, 8vw, 110px) 0; background: var(--surface); }
html:is(.vw-stories, .vw-story) .stories-sec { padding-top: clamp(32px, 4vw, 56px); min-height: 80vh; background: var(--bg); }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px 28px; }
html:not(.vw-stories):not(.vw-story) .stories > .story:nth-child(n+4) { display: none; }
html:not(.vw-stories):not(.vw-story) #tm-template-container .stories > :not(.story) { display: none !important; }
.st-cover { display: block; overflow: hidden; }
.st-cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.story:hover .st-cover img { transform: scale(1.03); }
.st-body { padding-top: 20px; }
.st-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.st-kind { color: var(--accent); }
.st-name { margin-top: 10px; font-family: var(--serif); font-size: 2.1rem; font-weight: 500; line-height: 1.05; }
.st-short { margin-top: 10px; color: var(--ink-2); }
.st-go { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); }
.st-go .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.story:hover .st-go .i { transform: translateX(4px); }
.st-more { display: none; }
/* Una historia abierta (su página): portada grande, relato, fotos, equipo */
html.vw-story .stories { display: block; }
html.vw-story .stories > :not(.story.is-open),
html.vw-story #tm-template-container .stories > :not(.story.is-open) { display: none !important; }
html.vw-story .story.is-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
html.vw-story .story.is-open .st-cover img { aspect-ratio: 4 / 5; }
html.vw-story .story.is-open .st-name { font-size: clamp(3rem, 7vw, 5.6rem); line-height: .98; }
html.vw-story .story.is-open .st-short { font-size: 1.2rem; font-family: var(--serif); font-style: italic; }
html.vw-story .story.is-open .st-go { display: none; }
html.vw-story .story.is-open .st-more { display: block; grid-column: 1 / -1; }
.st-long { max-width: 66ch; margin: clamp(16px, 4vw, 40px) auto clamp(40px, 6vw, 72px); font-size: 1.15rem; color: var(--ink-2); text-align: center; }
.st-photos { columns: 2 320px; column-gap: 16px; }
.st-shot { break-inside: avoid; margin-bottom: 16px; }
.st-shot img { width: 100%; height: auto; cursor: zoom-in; }
.st-credits-box { max-width: 720px; margin: clamp(40px, 6vw, 72px) auto 0; padding-top: 28px; border-top: 1px solid var(--line); }
.st-credits-title { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.st-credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px 24px; margin-top: 16px; }
.cr dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cr dd { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.st-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: clamp(40px, 6vw, 72px); padding: 36px 20px; background: var(--tint); text-align: center; }
.st-cta-title { font-family: var(--serif); font-size: 1.9rem; font-style: italic; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 22px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumb-name { color: var(--ink); }
.st-next { margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); text-align: right; }
.st-next-link { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; min-height: 44px; text-decoration: none; }
.st-next-link small { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.st-next-link strong { font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.st-next-link:empty { display: none; }
@media (max-width: 820px) { html.vw-story .story.is-open { grid-template-columns: 1fr; } html.vw-story .story.is-open .st-cover img { aspect-ratio: 5 / 4; } .st-long { text-align: left; } }

/* ─── Paquetes ─── */
.packages { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; align-items: stretch; }
.pk { display: flex; flex-direction: column; padding: 32px 28px 28px; background: var(--surface); border: 1px solid var(--line); }
.pk:has(.pk-tag:not(:empty)) { background: var(--ink); border-color: var(--ink); color: #fff; }
.pk-tag { align-self: flex-start; margin-bottom: 16px; padding: 4px 12px; border: 1px solid currentColor; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.pk-tag:empty { display: none; }
.pk-name { font-family: var(--serif); font-size: 2.3rem; font-weight: 500; line-height: 1; }
.pk-for { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.pk:has(.pk-tag:not(:empty)) :is(.pk-for, .pk-from) { color: rgba(255, 255, 255, .72); }
.pk-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.pk:has(.pk-tag:not(:empty)) .pk-price { border-color: rgba(255, 255, 255, .2); }
.pk-from { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pk-amount { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1; }
.pk-list { display: grid; gap: 10px; margin-bottom: 28px; }
.pk-item { display: flex; gap: 10px; align-items: flex-start; }
.pk-item .i { margin-top: 3px; width: 18px; height: 18px; color: var(--accent); }
.pk:has(.pk-tag:not(:empty)) .pk-item .i { color: var(--soft); }
.pk .pk-pick { margin-top: auto; border-color: currentColor; background: transparent; color: inherit; }
.pk .pk-pick:hover { background: var(--ink); color: #fff; }
.pk:has(.pk-tag:not(:empty)) .pk-pick { background: #fff; color: var(--ink); border-color: #fff; }
.pk:has(.pk-tag:not(:empty)) .pk-pick:hover { background: var(--soft); }
.sessions { margin-top: clamp(56px, 7vw, 88px); }
.sub-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; line-height: 1.05; }
.sub-lead { margin-top: 8px; color: var(--ink-2); }
.ss-list { display: grid; margin-top: 24px; border-top: 1px solid var(--line); }
.ss { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 28px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ss .pk-name { font-size: 1.7rem; }
.ss-detail { color: var(--muted); font-size: .95rem; }
.ss .pk-price { margin: 0; padding: 0; border: 0; }
.ss .pk-amount { font-size: 1.8rem; }
.pk-note { margin-top: 28px; color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .ss { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; } .ss-main { flex: 1 1 55%; } .ss .pk-pick { flex: 1 1 100%; } }

/* ─── Cotizador ─── */
.quote { padding: clamp(56px, 7vw, 96px) 0; background: var(--surface); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote-form { display: grid; gap: 28px; }
.q-field { display: grid; gap: 10px; }
.q-lab, .f-lab { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
main :is(select, input:not([type="radio"]):not([type="checkbox"]), textarea) { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-size: 1rem; }
main :is(select, input, textarea):focus { outline: none; border-color: var(--ink); }
main textarea { resize: vertical; min-height: 110px; }
.ex-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ex { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ex input { flex: none; width: 22px; height: 22px; accent-color: var(--accent); cursor: pointer; }
.ex-name { flex: 1; }
.ex-plus { color: var(--muted); }
.ex-price { font-family: var(--serif); font-size: 1.35rem; white-space: nowrap; }
.quote-box { position: sticky; top: calc(var(--head-h) + 24px); padding: 32px 28px; background: var(--ink); color: #fff; }
.q-sum-title { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.q-lines { display: grid; gap: 10px; margin: 18px 0; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .2); font-size: .95rem; }
.q-lines li { display: flex; justify-content: space-between; gap: 12px; }
.q-lines li span:last-child { white-space: nowrap; }
.q-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.q-total strong { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; }
.q-fine { margin: 12px 0 22px; font-size: .86rem; color: rgba(255, 255, 255, .75); }
.quote-box .btn-accent { background: #fff; color: var(--ink); }
.quote-box .btn-accent:hover { background: var(--soft); }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } .quote-box { position: static; } }

/* ─── Cómo trabajamos: pasos numerados con counter() (se renumeran solos) ─── */
.process { padding: clamp(64px, 8vw, 110px) 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px 24px; counter-reset: step; }
.step { counter-increment: step; padding-top: 22px; border-top: 1px solid var(--ink); }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--accent); }
.step-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.step-text { margin-top: 10px; color: var(--ink-2); font-size: .98rem; }

/* ─── Opiniones ─── */
.reviews { padding: clamp(64px, 8vw, 110px) 0; background: var(--tint); }
.rv-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.rv-head .sec-head { margin: 0; }
.rv-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink-2); }
.rt-n { font-family: var(--serif); font-size: 2rem; color: var(--ink); }
.stars { --r: 5; --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 6 6.5.7-4.9 4.4 1.4 6.4L12 17l-5.8 3.3 1.4-6.4L2.7 9.5l6.5-.7z'/%3E%3C/svg%3E"); display: inline-block; width: 96px; height: 18px;
  background: linear-gradient(90deg, var(--accent) calc(var(--r) / 5 * 100%), color-mix(in srgb, var(--accent) 25%, transparent) 0);
  -webkit-mask: var(--star) 0 0 / 19.2px 18px repeat-x; mask: var(--star) 0 0 / 19.2px 18px repeat-x; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
html:not(.vw-about):not(.one-page) .rv-grid > .rv:nth-child(n+4) { display: none; }
html:not(.vw-about):not(.one-page) #tm-template-container .rv-grid > :not(.rv) { display: none !important; }
.rv { display: flex; flex-direction: column; gap: 16px; padding: 0 0 28px; background: var(--surface); }
.rv-img { display: block; overflow: hidden; }
.rv-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rv > :not(.rv-img) { margin-inline: 24px; }
.rv-text { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.rv figcaption { display: grid; gap: 2px; margin-top: auto; }
.rv-name { font-weight: 500; }
.rv-kind { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ─── Preguntas (componente del editor: .faq-list > .faq-item) ─── */
.faq { padding: clamp(56px, 7vw, 96px) 0; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; display: block; padding: 22px 48px 22px 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-family: 'Jost', sans-serif; font-size: 1.6rem; font-weight: 300; color: var(--accent); }
.faq-item[open] summary::after { content: '–'; }
.faq-a { padding: 0 0 24px; max-width: 64ch; color: var(--ink-2); }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ─── Contacto ─── */
.contact { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.c-info { display: grid; gap: 4px; margin-bottom: 20px; }
.c-info li { display: flex; align-items: center; gap: 12px; }
.c-info a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.c-info a:hover { color: var(--accent); }
/* Versión esencial: sin formulario, los dos botones de contacto a la vista */
/* Versión esencial: una columna centrada (título, los dos botones juntos, datos y redes debajo) */
.contact-one .contact-grid { grid-template-columns: minmax(0, 760px); gap: 0; justify-content: center; text-align: center; }
.contact-one .sec-head { margin-bottom: 28px; }
.contact-one .sec-lead { margin-inline: auto; }
.c-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 auto 32px; }
.c-ctas .btn { flex: 0 1 auto; min-width: 280px; white-space: nowrap; }
.contact-one .c-info { justify-items: center; gap: 0; margin-bottom: 20px; }
.contact-one .c-info li { width: fit-content; max-width: 100%; text-align: left; }
.contact-one .c-nets-t { margin: 0 0 10px; }
@media (max-width: 560px) { .c-ctas { display: grid; } .c-ctas .btn { min-width: 0; width: 100%; letter-spacing: .1em; } }
.contact-one .c-nets { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 260px)); justify-content: center; text-align: left; }
.c-info .i { color: var(--accent); }
.c-plain { min-height: 44px; color: var(--ink-2); }
.c-nets-t { margin: 8px 0 8px; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.c-nets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px; margin-bottom: 32px; }
.c-net-a { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 56px; padding: 8px 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s; }
.c-net-a:hover { border-color: var(--ink); }
.c-net-a .c-ic { grid-row: span 2; width: 22px; height: 22px; color: var(--accent); }
.c-net-name { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.c-net-user { overflow-wrap: anywhere; }
body:not(.tm-preview-mode) #tm-template-container .c-nets > .tm-add-btn { min-height: 56px !important; flex-direction: row !important; gap: 8px !important; padding: 8px 14px !important; border-radius: 0 !important; }
.inquiry { display: grid; gap: 20px; padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); }
.inq-title { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.f-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.opt-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; cursor: pointer; background: var(--bg); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-alt { text-align: center; color: var(--muted); font-size: .92rem; }
.f-alt a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
/* Celular: título, formulario y después los demás datos de contacto */
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-side { display: contents; } .contact-side .sec-head { order: -2; margin-bottom: 0; } .inquiry { order: -1; } }

/* ─── ¿Tu fecha sigue libre? ─── */
.date-band { position: relative; padding: clamp(88px, 12vw, 160px) 0; color: #fff; text-align: center; overflow: hidden; background: #2a241f; }
.db-bg { position: absolute; inset: 0; }
.db-bg img { width: 100%; height: 100%; object-fit: cover; }
.db-bg::after { content: ''; position: absolute; inset: 0; background: rgba(20, 16, 12, .6); pointer-events: none; }
.db-inner { position: relative; display: grid; justify-items: center; gap: 16px; pointer-events: none; }
.db-inner > * { pointer-events: auto; }
.date-band .eyebrow { color: rgba(255, 255, 255, .85); }
.db-title { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.db-text { max-width: 48ch; font-size: 1.08rem; color: rgba(255, 255, 255, .9); }
.db-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 12px; }
.db-go { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }

/* ─── Instagram ─── */
.ig { padding: clamp(56px, 7vw, 96px) 0; }
.ig-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.ig-handle { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.6rem); text-decoration: none; }
.ig-handle:hover { color: var(--accent); }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 30%), 1fr)); gap: 8px; }
.ig-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ─── Pie ─── */
.footer { padding: clamp(64px, 8vw, 100px) 0 32px; background: var(--ink); color: rgba(255, 255, 255, .78); }
.ft-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: clamp(40px, 6vw, 64px); border-bottom: 1px solid rgba(255, 255, 255, .15); }
.ft-big { max-width: 16ch; font-size: clamp(2.6rem, 6vw, 4.6rem); color: #fff; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; padding: 40px 0; }
.ft-logo { font-family: var(--serif); font-size: 2rem; color: #fff; }
.ft-text { margin-top: 8px; max-width: 34ch; font-size: .95rem; }
.ft-title { margin-bottom: 8px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.ft-nav, .ft-contact { display: flex; flex-direction: column; align-items: flex-start; }
.ft-nav a, .ft-contact > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.ft-nav a:hover, .ft-contact a:hover { color: #fff; }
.ft-social { display: flex; gap: 6px; margin-top: 10px; }
.ft-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff; }
.ft-social a:hover { background: #fff; color: var(--ink); }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; }
.ft-legal { display: inline-flex; align-items: center; min-height: 44px; }

/* ─── Visor de fotos ─── */
.lb { position: fixed; inset: 0; z-index: 9000; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding: calc(var(--tm-top, 0px) + 56px) 8px 56px; background: rgba(14, 12, 10, .96); color: #fff; }
.lb-fig { display: grid; justify-items: center; gap: 12px; min-height: 0; height: 100%; }
.lb-img { max-width: 100%; max-height: calc(100svh - 170px - var(--tm-top, 0px)); width: auto; height: auto; object-fit: contain; align-self: center; }
.lb-cap { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); text-align: center; }
.lb-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn .i { width: 26px; height: 26px; }
.lb-close { position: absolute; top: calc(var(--tm-top, 0px) + 10px); right: 12px; }
.lb-count { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; font-size: .8rem; letter-spacing: .16em; color: rgba(255, 255, 255, .7); }
@media (max-width: 640px) {
  .lb { grid-template-columns: 1fr; padding-inline: 0; }
  .lb-prev, .lb-next { position: absolute; bottom: 8px; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
}

.msg-cfg { display: none !important; } /* sus frases se editan en la ventana del botón de WhatsApp */

/* ─── «¿Con qué abro el correo?» (lo crea el script al tocar un correo) ─── */
.mail-pick { position: fixed; z-index: 9500; display: grid; min-width: 220px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35); }
.mail-pick p { padding: 6px 10px 8px; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.mail-pick a, .mail-pick button { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: .95rem; text-align: left; text-decoration: none; cursor: pointer; }
.mail-pick a:hover, .mail-pick button:hover, .mail-pick :focus-visible { background: var(--tint); }

/* ─── Barra móvil ─── */
.mbar { display: none; }
@media (max-width: 768px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
  .mbar .mbar-wa { background: var(--wa); color: #fff; border-radius: var(--r); }
  body { padding-bottom: 72px; }
}

/* Celular: portadas más bajas para que la página no se alargue (al final: ganan a las reglas de cada sección) */
@media (max-width: 560px) {
  /* Versión esencial (una página): el portafolio entero de a dos, solo fotos; «1 por fila» en Ajustes (is-m1) */
  html.one-page .photos:not(.is-m1) { columns: 2; column-gap: 8px; }
  html.one-page .photos:not(.is-m1) .ph { margin-bottom: 8px; }
  html.one-page .photos:not(.is-m1) .ph-txt { display: none; }
  .photos.is-m1 { columns: 1; }
  html:not(.vw-story) .st-cover img, .rv-img img { aspect-ratio: 4 / 3; }
  .stories { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .hero-slide img { transform: none; }
}

/* Fechas con el formato del idioma de la página (ver date-fields.js): el texto nativo se hace transparente y se muestra el propio */
.dt { position: relative; display: block; width: 100%; min-width: 0; }
.dt-in { width: 100%; }
.dt-in::-webkit-datetime-edit { color: transparent; }
.dt-in::-webkit-datetime-edit-fields-wrapper { color: transparent; }
@supports (-moz-appearance: none) { .dt-in { color: transparent; } }
.dt-v { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; color: inherit; pointer-events: none; white-space: nowrap; }
.dt-v.is-empty { opacity: .55; }
.dt-in:focus-visible ~ .dt-v { text-decoration: underline; }

/* ─── Iconos de interfaz: generados por build.py (máscaras CSS, no son <svg> editables) ─── */
:root {
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E");
  --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --i-chev-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
  --i-chev-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l1.6 4.8L18 10l-4.4 1.6L12 16l-1.6-4.4L6 10l4.4-1.2z'/%3E%3C/svg%3E");
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
  --i-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='8.5' r='1.3'/%3E%3C/svg%3E");
  --i-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
  --i-tt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3v11.5a3.5 3.5 0 1 1-3.5-3.5'/%3E%3Cpath d='M14 3c.4 2.6 2.2 4.4 5 4.6'/%3E%3C/svg%3E");
  --i-fb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h-2a4 4 0 0 0-4 4v3H6v4h3v7h4v-7h3l1-4h-4V7a1 1 0 0 1 1-1h2z'/%3E%3C/svg%3E");
  --i-yt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='4'/%3E%3Cpath d='M10 9.5v5l4.5-2.5z'/%3E%3C/svg%3E");
  --i-pi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10.5 20.5 12.5 11'/%3E%3Cpath d='M9 12.5a3.5 3.5 0 1 1 6.5 1.8c-.8 1.6-2.6 2.3-3.6 1.2'/%3E%3C/svg%3E");
  --i-in: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M8 11v6M8 7.5v.01M12 17v-6M12 13.5a2.5 2.5 0 0 1 5 0V17'/%3E%3C/svg%3E");
  --i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M20 4 4 20'/%3E%3C/svg%3E");
  --i-web: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E");
  --i-ig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.8'/%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.i-arrow { --i: var(--i-arrow); }
.i-down { --i: var(--i-down); }
.i-close { --i: var(--i-close); }
.i-chev-l { --i: var(--i-chev-l); }
.i-chev-r { --i: var(--i-chev-r); }
.i-check { --i: var(--i-check); }
.i-spark { --i: var(--i-spark); }
.i-grid { --i: var(--i-grid); }
.i-tag { --i: var(--i-tag); }
.i-wa { --i: var(--i-wa); }
.i-mail { --i: var(--i-mail); }
.i-tt { --i: var(--i-tt); }
.i-fb { --i: var(--i-fb); }
.i-yt { --i: var(--i-yt); }
.i-pi { --i: var(--i-pi); }
.i-in { --i: var(--i-in); }
.i-x { --i: var(--i-x); }
.i-web { --i: var(--i-web); }
.i-ig { --i: var(--i-ig); }
.i-pin { --i: var(--i-pin); }
.i-clock { --i: var(--i-clock); }
