/* I Love Pic — Photography & Films */
:root {
  --ink: #141210;
  --ink-2: #1f1c19;
  --paper: #f4f2ee;
  --paper-2: #ebe7df;
  --line: #d9d3c8;
  --gold: #c9ab7e;
  --gold-deep: #8c6d43;
  --muted: #6a645c;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
em { font-family: var(--serif); font-style: italic; font-size: 1.12em; }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.2rem;
}
.dark .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--gold); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; }
.muted { color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 1.05em 2em;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: transparent; color: var(--gold); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.section:not(.dark) .btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-sm { padding: 0.8em 1.4em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.center .btn-row, .btn-row.center { justify-content: center; }
.link {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 4px;
}
.link:hover { color: var(--gold-deep); }
.dark .link:hover { color: var(--gold); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--paper);
  transition: background .3s, color .3s, box-shadow .3s;
}
.site-header.is-solid { background: rgba(244, 242, 238, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { display: block; width: auto; height: 68px; }
.site-header .logo-solid { display: none; }
.site-header.is-solid .logo-solid { display: block; }
.site-header.is-solid .logo-over { display: none; }
.nav-open .site-header .logo-solid { display: none; }
.nav-open .site-header .logo-over { display: block; }
.site-header .brand-logo { filter: drop-shadow(0 1px 10px rgba(0,0,0,.25)); }
.site-header.is-solid .brand-logo { filter: none; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav-link {
  position: relative; text-decoration: none;
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; padding: 8px 0;
}
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .3s; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { right: 0; }
.site-header:not(.is-solid) .nav .btn-gold:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; font: inherit; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; padding: 12px 0; cursor: pointer; }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--ink); color: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav .nav-link { font-size: 0.95rem; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { background: var(--ink); color: var(--paper); box-shadow: none; }
  .nav-open { overflow: hidden; }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; color: var(--paper); background: var(--ink); overflow: hidden; }
.hero.hero-short { min-height: min(82svh, 760px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.12) 32%, rgba(20,18,16,.3) 58%, rgba(20,18,16,.86) 100%); }
.hero-body { position: relative; z-index: 1; width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 13em; font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.hero .lede { max-width: 36em; margin-top: 1.5rem; opacity: .92; }
@media (max-width: 760px) {
  .hero, .hero.hero-short { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-img { position: relative; inset: auto; height: 62svh; }
  .hero::after { inset: 0 0 auto 0; height: 62svh; background: linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,0) 28%, rgba(20,18,16,0) 62%, var(--ink) 100%); }
  .hero-body { padding-top: 0; margin-top: -56px; }
  .wa-float { padding: 14px; right: 14px; bottom: 14px; }
  .wa-float span { display: none; }
  .wa-float svg { width: 22px; height: 22px; }
}
.page-head { background: var(--ink); color: var(--paper); padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(48px, 7vw, 88px); }
.page-head h1 { max-width: 16em; font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
.page-head .lede { max-width: 38em; margin-top: 1.4rem; opacity: .85; }
.crumbs { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.6rem; opacity: .75; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* Secciones */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section.tight { padding: clamp(56px, 7vw, 96px) 0; }
.dark { background: var(--ink); color: var(--paper); }
.tint { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 1.4rem; }
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 2rem 0; }
.center .rule { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media.wide img { aspect-ratio: 3 / 2; }
.split-body h2 { margin-bottom: 1.6rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* Tarjetas de servicio */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { position: relative; display: block; color: var(--paper); text-decoration: none; overflow: hidden; background: var(--ink); }
.service img { width: 100%; aspect-ratio: 3 / 4.3; object-fit: cover; transition: transform .9s cubic-bezier(.2,.6,.2,1), opacity .4s; opacity: .88; }
.service:hover img { transform: scale(1.05); opacity: .7; }
.service::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,18,16,.85)); }
.service-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px 26px; }
.service-body span { display: block; font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.service-body h3 { font-size: 1.9rem; }
.service-body p { font-size: 0.92rem; line-height: 1.5; margin-top: 8px; opacity: .88; }
@media (max-width: 1020px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .service img { aspect-ratio: 4 / 3.6; } }

/* Listas de características */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.features.two { grid-template-columns: repeat(2, 1fr); }
.feature { border-top: 1px solid var(--line); padding-top: 26px; }
.dark .feature { border-color: rgba(244,242,238,.2); }
.feature h3 { margin-bottom: 0.7rem; }
.feature p { font-size: 0.98rem; }
.num { display: block; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold-deep); margin-bottom: 0.6rem; }
.dark .num { color: var(--gold); }
@media (max-width: 860px) { .features, .features.two { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.checks li { position: relative; padding: 0.7rem 0 0.7rem 1.9rem; border-bottom: 1px solid var(--line); }
.dark .checks li { border-color: rgba(244,242,238,.16); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 1.35rem; width: 9px; height: 9px; border: 1px solid var(--gold-deep); transform: rotate(45deg); }
.dark .checks li::before { border-color: var(--gold); }

/* Paquetes */
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.packages.three { grid-template-columns: repeat(3, 1fr); }
.package { background: var(--paper); border: 1px solid var(--line); padding: 36px 28px; display: flex; flex-direction: column; }
.tint .package { background: var(--paper); }
.package.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.package-kicker { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.8rem; }
.package.featured .package-kicker { color: var(--gold); }
.package h3 { font-size: 1.9rem; margin-bottom: 0.9rem; }
.package p { font-size: 0.95rem; line-height: 1.6; }
.package-note { margin-top: 2.4rem; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 1020px) { .packages, .packages.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .packages, .packages.three { grid-template-columns: 1fr; } }

/* Galería */
.gallery { columns: 3; column-gap: 14px; }
.gallery.cols-4 { columns: 4; }
.foto { display: block; margin: 0 0 14px; break-inside: avoid; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.foto img { width: 100%; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.foto:hover img { transform: scale(1.035); }
@media (max-width: 1020px) { .gallery.cols-4 { columns: 3; } }
@media (max-width: 760px) { .gallery, .gallery.cols-4 { columns: 2; column-gap: 8px; } .foto { margin-bottom: 8px; } }

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(244,242,238,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.subnav .wrap { display: flex; gap: clamp(18px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: none; padding: 18px 0; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; }
.subnav a:hover { color: var(--gold-deep); }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.gallery-head p { max-width: 34em; margin-top: 0.8rem; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(12,11,10,.96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--paper); font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; padding: 18px; cursor: pointer; }
.lightbox button:hover { color: var(--gold); }
.lb-close { top: 8px; right: 12px; }
@media (min-width: 761px) { .lightbox img { max-width: calc(100vw - 260px); } }
@media (max-width: 760px) { .lb-prev, .lb-next { top: auto; bottom: 44px; transform: none; } .lightbox img { max-height: 74vh; } }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(244,242,238,.7); font-size: 0.82rem; padding: 0 60px; }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.quote { margin: 0; border-top: 1px solid rgba(244,242,238,.2); padding-top: 28px; }
.quote blockquote { margin: 0 0 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.4; }
.quote figcaption { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* Zonas */
.zones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; padding: 0; list-style: none; }
.zones li { border: 1px solid var(--line); padding: 0.6em 1.2em; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; }
.dark .zones li { border-color: rgba(244,242,238,.25); }
.center .zones { justify-content: center; }

/* FAQ */
.faqs { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.4rem; color: var(--gold-deep); transition: transform .25s; flex: none; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 28px; max-width: 46em; }
.faq-group { margin-bottom: clamp(48px, 6vw, 80px); }
.faq-group > h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.4rem; }

/* CTA */
.cta { position: relative; background: var(--ink); color: var(--paper); text-align: center; padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.cta .wrap { position: relative; }
.cta h2 { max-width: 14em; margin: 0 auto 1.4rem; }
.cta p { max-width: 34em; margin-left: auto; margin-right: auto; opacity: .88; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-deep); box-shadow: 0 1px 0 var(--gold-deep); }
.form-note { grid-column: 1 / -1; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.contact-card { background: var(--ink); color: var(--paper); padding: clamp(32px, 4vw, 52px); }
.contact-card h2 { font-size: 2rem; margin-bottom: 1.6rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid rgba(244,242,238,.18); }
.contact-list span { display: block; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.contact-list a { text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { color: var(--gold); }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 104px) 0 32px; border-top: 1px solid rgba(244,242,238,.12); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); }
.site-footer .brand-logo { height: 118px; }
.footer-about p { margin-top: 1.6rem; font-size: 0.95rem; opacity: .78; max-width: 26em; }
.footer-title { font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.footer-list a { text-decoration: none; opacity: .85; }
.footer-list a:hover { opacity: 1; color: var(--gold); }
.footer-bottom { margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid rgba(244,242,238,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: .6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--gold);
  padding: 13px 20px; text-decoration: none;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: background .25s, color .25s;
}
.wa-float:hover { background: var(--gold); color: var(--ink); }
.wa-float svg { width: 18px; height: 18px; fill: currentColor; }

/* Aparición suave */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.6,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .service img, .foto img { transition: none; }
}

/* --- Ajustes de la version 2026 --- */
.hero-img.pos-der { object-position: 66% 50%; }
.hero-img.pos-izq { object-position: 30% 50%; }
.hero-img.pos-alto { object-position: 50% 30%; }
@media (max-width: 760px) {
  .hero-img.pos-der { object-position: 62% 50%; }
}
@media (max-width: 560px) {
  :root { --header-h: 74px; }
  .brand-logo { height: 58px; }
  .site-footer .brand-logo { height: 100px; }
}

/* Reseñas */
.stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.2em; margin-bottom: 1rem; }
.quote blockquote { font-size: 1.32rem; }
.quote-note { margin-top: 2.2rem; font-size: 0.85rem; opacity: .6; }
/* Tarjetas de servicio: cinco en escritorio */
.services.five { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.services.five .service img { aspect-ratio: 3 / 4.6; }
.services.five .service-body { padding: 24px 20px; }
.services.five .service-body h3 { font-size: 1.65rem; }
@media (max-width: 1200px) {
  .services.five { grid-template-columns: repeat(6, 1fr); }
  .services.five .service { grid-column: span 2; }
  .services.five .service:nth-child(n+4) { grid-column: span 3; }
  .services.five .service:nth-child(n+4) img { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 760px) {
  .services.five { grid-template-columns: 1fr 1fr; }
  .services.five .service, .services.five .service:nth-child(n+4) { grid-column: span 1; }
  .services.five .service:last-child { grid-column: span 2; }
  .services.five .service img, .services.five .service:nth-child(n+4) img { aspect-ratio: 3 / 4; }
  .services.five .service-body { padding: 18px 14px; }
  .services.five .service-body h3 { font-size: 1.3rem; }
  .services.five .service-body p:not(.kicker) { display: none; }
}
@media (max-width: 460px) {
  .services.five { grid-template-columns: 1fr; }
  .services.five .service:last-child { grid-column: auto; }
  .services.five .service img, .services.five .service:nth-child(n+4) img { aspect-ratio: 4 / 3.6; }
  .services.five .service-body p:not(.kicker) { display: block; }
}
/* Portada con el texto en la columna izquierda para no tapar a las personas */
.hero::after { background: linear-gradient(90deg, rgba(20,18,16,.5) 0%, rgba(20,18,16,0) 58%), linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.1) 30%, rgba(20,18,16,.28) 58%, rgba(20,18,16,.86) 100%); }
@media (min-width: 1000px) {
  .hero-izq .hero-body > * { max-width: min(34em, 44vw); }
  .hero-izq .hero-body h1 { max-width: min(10.5em, 44vw); }
}
@media (max-width: 760px) {
  .hero::after { background: linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,0) 28%, rgba(20,18,16,0) 62%, var(--ink) 100%); }
}
/* Utilidades (sustituyen los estilos en línea para poder editar en bloques) */
.pt-0 { padding-top: 0 !important; }
.mt-s { margin-top: 1.4rem; }
.mt-m { margin-top: 2rem; }
.mb-l { margin-bottom: 2.4rem; }
.features.auto-fit { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.page-head-full { min-height: 70svh; display: flex; align-items: center; }
/* ==========================================================================
   Compatibilidad con el editor de bloques de WordPress
   (las paginas de WordPress usan bloques nativos con estas mismas clases)
   ========================================================================== */
:where(.wp-block-group) { margin-top: 0; margin-bottom: 0; }
:where(.wp-block-image) { margin: 0; }
.wp-block-image img { display: block; max-width: 100%; height: auto; }
.wp-block-image a { display: block; }

/* Portadas y fondos con foto */
.hero-img > img, .cta-img > img { width: 100%; height: 100%; object-fit: cover; object-position: inherit; }
.hero-img.pos-der > img { object-position: 66% 50%; }
.hero-img.pos-izq > img { object-position: 30% 50%; }
@media (max-width: 760px) { .hero-img.pos-der > img { object-position: 62% 50%; } }

/* Botones */
.wp-block-buttons.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.wp-block-buttons .wp-block-button { margin: 0; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 1.05em 2em; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500; line-height: 1.7;
  letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.wp-block-button .wp-block-button__link:hover { background: transparent; color: var(--ink); }
.wp-block-button.btn-gold .wp-block-button__link { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.wp-block-button.btn-gold .wp-block-button__link:hover { background: transparent; color: var(--gold); }
.wp-block-button.btn-ghost .wp-block-button__link { background: transparent; color: inherit; border-color: currentColor; }
.wp-block-button.btn-ghost .wp-block-button__link:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.section:not(.dark) .wp-block-button.btn-ghost .wp-block-button__link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wp-block-button.btn-sm .wp-block-button__link { padding: 0.8em 1.4em; }
.wp-block-buttons.link-row { margin: 0; }
.wp-block-button.is-link .wp-block-button__link {
  background: none; border: 0; border-bottom: 1px solid var(--gold); padding: 0 0 4px; color: inherit;
  font-size: 0.74rem; letter-spacing: 0.24em;
}
.wp-block-button.is-link .wp-block-button__link:hover { background: none; color: var(--gold-deep); }
.dark .wp-block-button.is-link .wp-block-button__link:hover { color: var(--gold); }
.gallery-head .link-row { flex: none; }

/* Tarjetas de servicio */
.service-body .kicker { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; line-height: 1.7; opacity: 1; }
.service-body h3 a { color: inherit; text-decoration: none; }
.service-body h3 a::after { content: ""; position: absolute; inset: -700px -400px; z-index: 2; }

/* Galerias */
.gallery > .wp-block-image { margin: 0 0 14px; break-inside: avoid; }
.gallery > .wp-block-image .foto { margin: 0; }
@media (max-width: 760px) { .gallery > .wp-block-image { margin-bottom: 8px; } }

/* Menu secundario del portafolio, migas y preguntas */
.subnav p { margin: 0; flex: none; }
p.crumbs a { text-decoration: none; }
.faq > p { padding: 0 0 28px; margin: 0; max-width: 46em; }

/* Resenas */
.quote .wp-block-quote { margin: 0 0 1.4rem; padding: 0; border: 0; }
.quote .wp-block-quote p { margin: 0; }
.quote cite { display: block; margin-top: 1.4rem; font-family: var(--sans); font-style: normal; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }

/* Listas y separadores */
ul.wp-block-list { margin-left: 0; }
.wp-block-separator.rule { border: 0; width: 56px; height: 1px; background: var(--gold); margin: 2rem 0; }
.center .wp-block-separator.rule { margin-left: auto; margin-right: auto; }

/* Menú "Servicios" desplegable */
.nav-group { position: relative; }
.nav-drop { background: none; border: 0; color: inherit; cursor: pointer; padding-right: 18px; font-family: var(--sans); }
.nav-drop::before {
  content: ""; position: absolute; right: 2px; top: 50%; width: 5px; height: 5px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-75%) rotate(45deg); transition: transform .25s;
}
.nav-group:hover .nav-drop::before, .nav-group.open .nav-drop::before, .nav-group:focus-within .nav-drop::before { transform: translateY(-25%) rotate(225deg); }
.nav-drop[data-activo]::after { right: 0; }
.submenu {
  position: absolute; top: 100%; left: -22px; min-width: 250px; margin-top: 16px; padding: 10px 0;
  background: var(--ink); color: var(--paper); box-shadow: 0 18px 40px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-group:hover .submenu, .nav-group:focus-within .submenu, .nav-group.open .submenu { opacity: 1; visibility: visible; transform: none; }
.sub-link {
  display: block; padding: 13px 26px; text-decoration: none; color: var(--paper);
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
}
.sub-link:hover, .sub-link[aria-current="page"] { color: var(--gold); background: rgba(244,242,238,.06); }

@media (max-width: 1200px) {
  .nav-group { text-align: center; }
  .nav-drop { cursor: default; padding-right: 0; pointer-events: none; }
  .nav-drop::before { display: none; }
  .submenu {
    position: static; margin: 10px 0 0; padding: 0; min-width: 0; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .submenu::before { display: none; }
  .sub-link { padding: 9px 0; font-size: 0.8rem; color: var(--gold); }
  .sub-link:hover, .sub-link[aria-current="page"] { background: none; color: var(--paper); }
  .nav { gap: 20px; }
}

/* Bloques del editor: piezas que en el diseno original eran <span> o <figcaption> y en el editor son parrafos y citas */
p.eyebrow.eyebrow { margin-top: 0; margin-left: 0; margin-right: 0; opacity: 1; }
.cta p.eyebrow.eyebrow, .gallery-head p.eyebrow.eyebrow { max-width: none; }
.wp-block-buttons.link-row .wp-block-button__link { display: flex; }
.wp-block-buttons.link-row.mt-m { margin-top: 2rem; }
.wp-block-buttons.link-row.mt-m .wp-block-button__link { display: inline; }
.package p.package-kicker { font-size: 0.66rem; line-height: 1.7; }
.subnav p a { display: block; }
p.num.num { font-size: 1.5rem; }
.quote .wp-block-quote { margin-bottom: 0; }
.quote .wp-block-quote cite { margin-top: 1.4rem; line-height: 1.7; }

/* Pagina XV anos Puerto Morelos: marcadores de foto pendiente, precios y locaciones */
.foto-pendiente { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--line); color: var(--muted); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.7; }
.hero .foto-pendiente.hero-img { background: linear-gradient(180deg, #4a463f, #2b2825); color: rgba(244,242,238,.5); align-items: flex-start; padding-top: calc(var(--header-h) + 32px); }
.locations .foto-pendiente { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.gallery .foto-pendiente { margin: 0 0 14px; break-inside: avoid; }
.ar-34 { aspect-ratio: 3 / 4; }
.ar-32 { aspect-ratio: 3 / 2; }
.ar-21 { aspect-ratio: 2 / 1; }
@media (max-width: 760px) { .gallery .foto-pendiente { margin-bottom: 8px; } .ar-21 { aspect-ratio: 3 / 2; } }
.locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.location h3 { margin-bottom: 0.5rem; }
.location p { font-size: 0.98rem; }
@media (max-width: 860px) { .locations { grid-template-columns: 1fr; } }
.packages.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .packages.two { grid-template-columns: 1fr; } }
.package .precio { font-family: var(--serif); font-size: 2.4rem; line-height: 1.1; margin-bottom: 0.4rem; }
.package .precio s { font-size: 1.3rem; opacity: .55; margin-right: 0.3em; }
.package .precio span { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; }
.package .ahorro { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1rem; }
.package.featured .ahorro { color: var(--gold); }
.a-la-carta { list-style: none; padding: 0; margin: 1.2rem 0 0; max-width: 520px; }
.a-la-carta li { display: flex; justify-content: space-between; gap: 20px; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.features.two .feature .btn-row { margin-top: 1.4rem; }
.promo-gratis { font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.05; color: var(--gold); margin: 1.2rem 0 0; }
.promo-gratis strong { font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.vigencia { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: .8; margin-top: 1rem; }
.promo-banner { background: var(--ink); color: var(--paper); text-align: center; padding: clamp(32px, 5vw, 56px) 24px; margin-bottom: 16px; }
.promo-banner .promo-gratis { margin: 0 0 0.8rem; }
.promo-banner p { margin-left: auto; margin-right: auto; }
.a-la-carta .gratis { color: var(--gold-deep); font-weight: 500; }
.foto-pendiente p { margin: 0; }
.campo-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-correo { position: relative; }
.form-ok { color: var(--gold-deep); font-weight: 500; }
.form-error { color: #9b2c2c; }
.ciudades .feature .btn-row { margin-top: 1.4rem; }
.ciudades .proximamente { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.a-la-carta s { color: var(--muted); font-weight: 300; margin-right: 0.4em; }

/* Paginas XV: anuncio de sesion gratis */
.promo-banner .btn-row { justify-content: center; }
.hero .promo-gratis { margin-top: 1rem; }


/* CTA con rostros visibles: texto abajo a la derecha, foto sin tapar caras */
.cta.cta-rostro{padding:0;min-height:clamp(520px,52vw,660px);display:flex;align-items:flex-end;justify-content:flex-end;text-align:right}
.cta.cta-rostro .cta-img{opacity:.85}
.cta.cta-rostro::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(10,10,16,.9) 0%,rgba(10,10,16,.6) 36%,rgba(10,10,16,0) 62%);pointer-events:none}
.cta.cta-rostro .wrap{position:relative;z-index:2;width:100%;padding-top:0;padding-bottom:clamp(32px,5vw,64px)}
.cta.cta-rostro h2,.cta.cta-rostro p{margin-left:auto;margin-right:0}
.cta.cta-rostro .wp-block-buttons{justify-content:flex-end}
@media (max-width:700px){.cta.cta-rostro{min-height:600px;text-align:center}.cta.cta-rostro h2,.cta.cta-rostro p{margin-left:auto;margin-right:auto}.cta.cta-rostro .wp-block-buttons{justify-content:center}}
.promo-gratis small{display:block;font-size:.42em;letter-spacing:.12em;text-transform:uppercase;margin-top:.5em;opacity:.9}

/* Formularios: casillas de aviso de privacidad y autorizacion */
.field .check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; font-weight: 300; letter-spacing: 0; text-transform: none; line-height: 1.5; }
.field .check input { margin-top: 4px; flex: none; width: auto; }

/* Paquetes con precio por tipo de cobertura */
.package .precio-tipo { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; opacity: .7; }
.package .precios-opciones { list-style: none; margin: 1rem 0 0; padding: 0.9rem 0 0; border-top: 1px solid rgba(128,128,128,.3); font-size: 0.88rem; }
.package .precios-opciones li { margin: 0 0 0.35rem; padding: 0; }
.package .precios-opciones li::before { content: none; }

/* Reseñas de Google filtradas por tema (fondo claro) */
.resenas-google .quote { border-top-color: rgba(0,0,0,.12); }
.resenas-google.pocas { grid-template-columns: 1fr; max-width: 760px; }
.resenas-google .estrellas { color: var(--gold); letter-spacing: 0.2em; margin: 0 0 0.8rem; }

/* Foto destacada a todo lo ancho, arriba de la galería */
.wp-block-image.galeria-destacada { margin: 0 0 14px; }
.wp-block-image.galeria-destacada img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .wp-block-image.galeria-destacada { margin-bottom: 8px; } }

/* Locaciones desplegables (misma apariencia que las preguntas frecuentes) */
.faqs.locaciones { margin-top: 1rem; }
.faqs.locaciones .faq > p { padding-bottom: 20px; }

/* Nombre de la tarjeta de paquete como párrafo (mismo aspecto que el h3) */
.package .package-title { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.9rem; }

/* Locaciones: una sola pestaña desplegable con la lista adentro */
.faq summary.locaciones-toggle h3 { font: inherit; margin: 0; }
.faqs.locaciones .faq > ul.checks { margin: 0 0 1rem; }
.faqs.locaciones .faq > p { padding: 0 0 28px; margin: 0; }

/* Tabla de precios en artículos */
.tabla-precios { margin: 1.6rem 0; overflow-x: auto; }
.tabla-precios table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tabla-precios th, .tabla-precios td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla-precios th { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Blog ---------- */
.blog-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: clamp(24px, 3vw, 44px); }
.blog-card { display: flex; flex-direction: column; background: rgba(255,255,255,.55); border: 1px solid var(--line); }
.blog-card-img { display: block; overflow: hidden; }
.blog-card-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { display: flex; flex-direction: column; gap: .8rem; flex: 1; padding: clamp(22px, 2.4vw, 32px); }
.blog-meta { margin: 0; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.blog-card-title { margin: 0; font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.18; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--gold-deep); }
.blog-card-resumen { margin: 0; opacity: .8; }
.blog-card-link { margin-top: auto; padding-top: .6rem; font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: inherit; text-decoration: none; }
.blog-card-link::after { content: " \2192"; }
.blog-vacio { text-align: center; opacity: .7; }

/* Cifras destacadas (blog) */
.datos .feature .dato { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; margin: 0 0 .6rem; color: var(--gold-deep); }
.datos .feature p:last-child { margin: 0; }
@media (max-width: 760px) { .features.auto-fit.datos { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; } .datos .feature .dato { font-size: 2rem; } }
