/* =====================================================================
   Amvira · estilos compartidos de las páginas públicas (public/guias/guias.css)
   Idea: cada página se ve como una galería entregada — portada a lo ancho,
   secciones como en la galería del cliente, y fotos antes que texto.
   ===================================================================== */

:root {
  --paper: #F7F7F5;
  --white: #FFFFFF;
  --ink: #1C1C1C;
  --stone: #6B6B6B;
  --gold: #C89B3C;
  --gold-dark: #A87F28;
  --sand: #C5A880;
  --line: #EAE9E5;
  --mist: #F0EFEB;

  /* La misma fuente que tu app y tu landing (font-sans de Tailwind). Títulos y texto usan la misma. */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);

  --wrap: 1160px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Tipografía ---------- */
h1, h2, h3 { margin: 0; font-weight: 500; }
.display, .title, .subtitle, .steps li::before, .plans .price, .faq summary { font-variant-numeric: lining-nums; }
.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.subtitle { font-family: var(--serif); font-size: 26px; line-height: 1.15; font-weight: 600; }
.lede { font-size: 19px; color: var(--stone); max-width: 56ch; margin: 18px 0 0; }
.lede + .muted { margin-top: 18px; font-size: 16px; }
p { margin: 0 0 14px; }
.muted { color: var(--stone); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #3a3a3a; }
.btn-line { border: 1px solid rgba(255,255,255,.6); color: var(--white); }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Barra superior ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: var(--white); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 15px; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-links .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Portada (como la portada de una galería) ---------- */
.cover {
  position: relative; min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  color: var(--white); background: #2a2622;
  overflow: hidden;
}
.cover > img, .cover > picture, .cover > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,.45) 0%, rgba(20,18,16,0) 26%, rgba(20,18,16,.15) 50%, rgba(20,18,16,.78) 100%);
}
.cover-body { position: relative; z-index: 1; width: 100%; padding-bottom: 72px; }
.cover .display { max-width: 13ch; }
.cover .lede { color: rgba(255,255,255,.86); }
.cover-meta { margin-top: 26px; font-size: 14px; color: rgba(255,255,255,.75); }

/* Entrada única de la portada */
@media (prefers-reduced-motion: no-preference) {
  .cover > img, .cover > picture img { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
  .cover-body > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .cover-body > *:nth-child(2) { animation-delay: .12s; }
  .cover-body > *:nth-child(3) { animation-delay: .24s; }
  .cover-body > *:nth-child(4) { animation-delay: .36s; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones como en la galería del cliente ---------- */
.sections {
  position: sticky; top: 0; z-index: 15;
  background: rgba(247,247,245,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.sections .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 12px; padding-bottom: 12px; }
.sections .wrap::-webkit-scrollbar { display: none; }
.sections a {
  flex: none; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; text-decoration: none; color: var(--stone); white-space: nowrap;
}
.sections a:hover { color: var(--ink); background: var(--mist); }
.sections a.home { color: var(--ink); font-weight: 600; }

.block { padding-top: 110px; padding-bottom: 110px; }
.block + .block { padding-top: 0; }
.block-head { max-width: 640px; margin-bottom: 48px; }
.block-head p { margin-top: 16px; color: var(--stone); }

/* ---------- Introducción: texto + tira de fotos ---------- */
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; }
.strip img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.strip img:first-child { grid-row: span 2; }
.strip img:nth-child(4) { grid-column: span 2; }

/* ---------- Teléfono con la galería, anotado ---------- */
.annotated { display: grid; grid-template-columns: 1fr 320px 1fr; gap: 40px; align-items: center; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.notes li { position: relative; }
.notes h3 { font-size: 17px; font-weight: 650; margin-bottom: 4px; }
.notes p { margin: 0; color: var(--stone); font-size: 15px; }
.notes.left { text-align: right; }
.notes li::after {
  content: ""; position: absolute; top: 11px; width: 26px; height: 1px; background: var(--sand);
}
.notes.left li::after { right: -38px; }
.notes.right li::after { left: -38px; }
.notes li::before {
  content: ""; position: absolute; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.notes.left li::before { right: -42px; }
.notes.right li::before { left: -42px; }

.phone {
  width: 320px; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px;
  background: var(--ink); box-shadow: 0 40px 80px -40px rgba(28,28,28,.55);
}
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.screen-cover { position: relative; height: 42%; color: var(--white); }
.screen-cover img { width: 100%; height: 100%; object-fit: cover; }
.screen-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6)); }
.screen-cover div { position: absolute; left: 16px; bottom: 14px; z-index: 1; }
.screen-cover strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.screen-cover span { font-size: 11px; opacity: .85; }
.screen-tabs { display: flex; gap: 6px; padding: 10px 12px 8px; font-size: 10.5px; }
.screen-tabs span { padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--stone); }
.screen-tabs span:first-child { background: var(--ink); color: var(--white); }
.screen-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 0 3px; overflow: hidden; }
.screen-grid div { position: relative; }
.screen-grid img { width: 100%; height: 100%; object-fit: cover; }
.heart { position: absolute; right: 7px; bottom: 7px; width: 22px; height: 22px; }
.screen-bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 9px 9px 14px; border-radius: 999px; background: rgba(28,28,28,.92); color: var(--white); font-size: 11px;
}
.screen-bar b { padding: 6px 12px; border-radius: 999px; background: var(--gold); font-weight: 600; }

/* ---------- Drive vs. galería (visual) ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { border-radius: 18px; padding: 28px; }
.panel h3 { font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.panel.before { background: var(--mist); color: var(--stone); }
.panel.after { background: var(--white); border: 1px solid var(--line); }
.files { list-style: none; margin: 0; padding: 0; font-size: 14px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.files li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #E2E0DA; }
.files li span:last-child { opacity: .7; }
.mini { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 92px 92px; gap: 6px; }
.mini img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.mini img:first-child { grid-row: span 2; }
.panel .caption { margin: 16px 0 0; font-size: 15px; }
.panel.before .caption { color: var(--stone); }

/* ---------- Pasos (sí es una secuencia) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1; color: var(--gold); margin-bottom: 14px; }
.steps h3 { font-size: 17px; font-weight: 650; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 15px; color: var(--stone); }

/* ---------- Planes (breve) ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans > div { padding: 26px 22px; }
.plans > div + div { border-left: 1px solid var(--line); }
.plans strong { display: block; font-size: 15px; }
.plans .price { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 6px 0 4px; }
.plans .price small { font-family: var(--sans); font-size: 13px; color: var(--stone); white-space: nowrap; }
.plans p { margin: 0; font-size: 14px; color: var(--stone); }
.plans .pick { background: var(--white); box-shadow: inset 0 3px 0 var(--gold); }

/* ---------- Preguntas ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-family: var(--serif); font-size: 18px; line-height: 1.35; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 22px; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--stone); max-width: 62ch; }

/* ---------- Cierre ---------- */
.closing { position: relative; color: var(--white); background: #2a2622; overflow: hidden; }
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ""; position: absolute; inset: 0; background: rgba(20,18,16,.62); }
.closing .wrap { position: relative; z-index: 1; padding-top: 130px; padding-bottom: 130px; text-align: center; }
.closing .title { max-width: 18ch; margin: 0 auto; }
.closing p { color: rgba(255,255,255,.82); margin: 18px auto 0; max-width: 46ch; }
.closing .btn-row { justify-content: center; }

/* ---------- Pie ---------- */
.foot { padding-top: 48px; padding-bottom: 56px; font-size: 14px; color: var(--stone); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot a { text-decoration: none; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--ink); }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 36px; }
  .strip { grid-template-rows: 150px 150px; }
  .annotated { grid-template-columns: 1fr; justify-items: center; gap: 32px; }
  .phone { width: 280px; }
  .notes, .notes.left { text-align: left; width: 100%; max-width: 420px; gap: 20px; }
  .notes li { padding-left: 20px; }
  .notes li::after { display: none; }
  .notes li::before, .notes.left li::before, .notes.right li::before { left: 0; right: auto; }
  .annotated .notes.left { order: 2; }
  .annotated .notes.right { order: 3; }
  .versus { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plans > div:nth-child(3) { border-left: 0; }
  .plans .price small { display: block; margin-top: 2px; }
  .plans > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .block { padding-top: 76px; padding-bottom: 76px; }
  .cover { min-height: 88vh; }
  .cover-body { padding-bottom: 48px; }
  .lede { font-size: 17px; }
  .nav-links .login { display: none; }
  .steps { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .mini { grid-template-rows: 70px 70px; }
  .faq summary { font-size: 17px; }
  .closing .wrap { padding-top: 96px; padding-bottom: 96px; }
}

/* =====================================================================
   Componentes de las guías (entregar fotos, Drive…)
   ===================================================================== */

/* ---------- Lista de formas de entregar (de peor a mejor) ---------- */
.methods { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.methods li {
  display: grid; grid-template-columns: 220px 1fr 260px; gap: 28px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.methods h3 { font-family: var(--serif); font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.methods p { margin: 0; color: var(--stone); }
.verdict-line { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.verdict-line span { display: inline-flex; align-items: center; gap: 6px; }
.verdict-line span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #C9C6BE; }
.verdict-line .ok::before { background: #2E9B6E; }
.methods li.best {
  margin: 14px -28px 0; padding: 30px 28px; border: 0; border-radius: 18px;
  background: var(--ink); color: var(--white);
}
.methods li.best p { color: rgba(255,255,255,.75); }
.methods li.best .verdict-line .ok::before { background: var(--gold); }

/* ---------- Matriz compacta (✓ / –) ---------- */
.matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix th:first-child, .matrix td:first-child { text-align: left; padding-left: 0; }
.matrix thead th { font-size: 14px; font-weight: 600; color: var(--stone); }
.matrix thead th.us { color: var(--ink); }
.matrix td.us { background: var(--white); }
.matrix thead th.us { background: var(--white); border-radius: 12px 12px 0 0; }
.yes-mark { color: #2E9B6E; font-weight: 700; }
.no-mark { color: #B9B6AE; }
.matrix small { display: block; font-size: 12px; color: var(--stone); }

/* ---------- Foto + puntos ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.points li { padding-left: 22px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.points strong { display: block; }
.points span { color: var(--stone); font-size: 15px; }

/* ---------- Consejos ---------- */
.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 64px; }
.tips h3 { font-family: var(--serif); font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.tips p { margin: 0; color: var(--stone); }

.quote {
  margin: 72px 0 0; padding: 0 0 0 28px; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; max-width: 36ch;
}

@media (max-width: 900px) {
  .methods li { grid-template-columns: 1fr; gap: 8px; }
  .methods li.best { margin: 14px 0 0; padding: 24px; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature > img { aspect-ratio: 4 / 3; }
  .tips { grid-template-columns: 1fr; gap: 32px; }
}

/* Mientras cargan las fotos, un tono suave en vez de un hueco */
.feature > img, .strip img, .mini img, .screen-grid img, .screen-cover img { background-color: var(--mist); }

/* Celular: la comparativa cabe completa (solo ✓ / –, sin notas) */
@media (max-width: 560px) {
  .matrix { min-width: 0; font-size: 14px; table-layout: fixed; }
  .matrix th, .matrix td { padding: 13px 2px; }
  .matrix th:first-child, .matrix td:first-child { width: 30%; }
  .matrix thead th { font-size: 11px; line-height: 1.25; letter-spacing: -0.01em; }
  .matrix small { display: none; }
}

/* ---------- Línea de tiempo (la entrega de una boda) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--sand); }
.timeline li { position: relative; padding-top: 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline li:last-child::before { background: var(--gold); }
.timeline .when { display: block; font-size: 14px; color: var(--gold-dark); font-weight: 600; margin-bottom: 8px; }
.timeline h3 { font-family: var(--serif); font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.timeline p { margin: 0; color: var(--stone); }
.aside-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--stone); max-width: 70ch; }
.aside-note strong { color: var(--ink); }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 30px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -30px; top: 4px; }
}