/* ============================================================
   SAMA Web Studio — styles.css
   Archetype: Editorial Light Cream (adaptado a paleta SMA)
   ============================================================ */

:root {
  --bg:        #f4efe4;   /* crema cálido */
  --bg-2:      #e9decb;   /* arena */
  --paper:     #ffffff;
  --ink:       #221d16;
  --ink-soft:  #33291d;
  --ink-mute:  #675c4a;
  --accent:    #b8672f;   /* terracota — solo para fondos/decoración, no pasa AA como texto sobre crema/blanco */
  --accent-text: #8f5025; /* terracota oscurecido — usar como texto o como fondo con texto claro encima (cumple AA 4.5:1) */
  --accent-2:  #4a5a63;   /* azul cantera */
  --gold:      #b08d45;   /* dorado envejecido */
  --line:      rgba(34,29,22,0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  /* Defensive fallback: reveals on its own after 1.4s even if JS never runs
     or IntersectionObserver isn't supported. JS just makes it happen sooner. */
  animation: reveal-fallback 0s 1.4s forwards;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}

/* Cascada: cada tarjeta entra un poco después que la anterior */
.services-grid .reveal:nth-child(1) { transition-delay: 0s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.services-grid .reveal:nth-child(n+6) { transition-delay: 0.4s; }
.pricing-grid .reveal:nth-child(1) { transition-delay: 0s; }
.pricing-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.pricing-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.pricing-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.process-list .reveal:nth-child(1) { transition-delay: 0s; }
.process-list .reveal:nth-child(2) { transition-delay: 0.08s; }
.process-list .reveal:nth-child(3) { transition-delay: 0.16s; }
.process-list .reveal:nth-child(4) { transition-delay: 0.24s; }
.process-list .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .hero-shape { animation: none !important; }
  .hero-visual img { animation: none !important; }
  .reveal {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 5vw;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 5vw;
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--accent-text); font-style: italic; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: background 0.3s var(--ease), transform .3s var(--ease);
}
.nav-cta:hover { background: var(--accent-text); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: all .3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 5vw 80px;
  overflow: hidden;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(at 18% 22%, rgba(184,103,47,0.55) 0px, transparent 55%),
    radial-gradient(at 82% 15%, rgba(176,141,69,0.5) 0px, transparent 55%),
    radial-gradient(at 70% 78%, rgba(74,90,99,0.4) 0px, transparent 55%),
    radial-gradient(at 15% 82%, rgba(184,103,47,0.35) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(176,141,69,0.3) 0px, transparent 60%);
  background-size: 180% 180%;
  background-position: 0% 0%;
  filter: blur(40px);
  animation: hero-mesh-drift 22s ease-in-out infinite alternate;
}
@keyframes hero-mesh-drift {
  0%   { background-position: 10% 20%; }
  50%  { background-position: 70% 60%; }
  100% { background-position: 30% 85%; }
}
@media (prefers-reduced-motion: reduce), (max-width: 720px) {
  .hero-mesh { display: none; }
}

/* ---------- Hero badge (insignia circular) ---------- */
.hero-badge {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 128px;
  height: 128px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 12px 30px rgba(34,29,22,0.22);
}
.hero-badge::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, var(--accent), var(--gold), var(--accent-2), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: hero-badge-pulse 3.5s ease-in-out infinite;
}
@keyframes hero-badge-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.hero-badge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: hero-badge-rotate 20s linear infinite;
}
@keyframes hero-badge-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-badge-text {
  font-family: var(--font-body, inherit);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: var(--ink);
  text-transform: uppercase;
}
.hero-badge-core {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-text);
}
@media (max-width: 720px) {
  .hero-badge { width: 92px; height: 92px; right: -10px; bottom: -10px; }
  .hero-badge-text { font-size: 9px; }
  .hero-badge-core { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge-svg { animation: none; }
  .hero-badge::before { animation: none; }
}
.hero-shape {
  position: absolute;
  top: -10%; right: -10%;
  width: 55vw; height: 55vw;
  max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(184,103,47,0.16), transparent 70%);
  animation: float 14s ease-in-out infinite;
  z-index: 0;
}
@keyframes float {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-3%, 4%); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  justify-self: end;
  width: 100%;
  max-width: 460px;
  border-radius: 240px 240px 22px 22px;
  box-shadow: 0 30px 60px rgba(34,29,22,0.18);
}
.hero-visual > img {
  border-radius: inherit;
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  animation: hero-zoom 20s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 22px;
  font-weight: 600;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 26px;
  letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-mute);
  max-width: 560px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent-text); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(184,103,47,0.28); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-outline { display: block; text-align: center; border: 1px solid var(--line); color: var(--ink); margin-top: 24px; padding: 12px 24px; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---------- Section shared ---------- */
section { position: relative; z-index: 1; }
.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 500;
  max-width: 700px;
  margin-bottom: 16px;
  position: relative;
  padding-top: 22px;
}
.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
}
.contact .section-title::before { background: linear-gradient(90deg, var(--gold), var(--accent)); }
.section-sub { color: var(--ink-mute); max-width: 600px; margin-bottom: 20px; }

/* ---------- Servicios ---------- */
.services { padding: 40px 5vw 100px; max-width: 1280px; margin: 0 auto; }
.services-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--bg);
  padding: 38px 32px;
  transition: background 0.35s var(--ease), transform .35s var(--ease);
}
.service-card:hover { background: var(--paper); transform: translateY(-3px); }
.service-num { font-family: var(--font-display); font-style: italic; color: var(--accent-text); font-size: 0.95rem; }
.service-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin: 14px 0 10px; }
.service-card p { color: var(--ink-mute); font-size: 0.94rem; }
.price-note { color: var(--accent-text) !important; font-size: 0.82rem !important; font-weight: 500; margin-top: -6px; margin-bottom: 10px; }
/* ---------- Paquetes ---------- */
.packages { padding: 60px 5vw 100px; max-width: 1280px; margin: 0 auto; }
.pricing-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  align-items: start;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 28px;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow .35s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(34,29,22,0.08); }
.price-card--featured { border-color: var(--accent); background: #fffdf9; }
.price-badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--accent-text); color: #fff;
  font-size: 0.72rem; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
  letter-spacing: 0.03em;
}
.price-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; margin-bottom: 8px; }
.price-tag { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); margin-bottom: 6px; }
.price-tag span { font-size: 0.9rem; color: var(--ink-mute); font-family: var(--font-body); }
.price-desc { color: var(--ink-mute); font-size: 0.88rem; margin-bottom: 14px; }
.price-scope { color: var(--accent-text); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.price-delivery { color: var(--ink-soft); font-size: 0.85rem; font-weight: 500; margin-bottom: 14px; }
.price-details { border-top: 1px solid var(--line); }
.price-details summary {
  cursor: pointer;
  padding: 14px 0;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-text);
}
.price-details summary:hover { text-decoration: underline; }
.price-details ul { margin-bottom: 6px; }
.price-card ul, .service-card ul { display: flex; flex-direction: column; gap: 10px; }
.price-card li, .service-card li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.price-card li::before, .service-card li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--accent-text);
}
.maintenance-note {
  margin-top: 40px;
  padding: 22px 28px;
  background: var(--bg-2);
  border-radius: 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.maintenance-note a { color: var(--accent-text); text-decoration: underline; }

/* ---------- Servicios extra ---------- */
.extras { padding: 60px 5vw 100px; max-width: 1280px; margin: 0 auto; }
.service-card--included { position: relative; }
.service-card--included .price-badge {
  position: absolute;
  top: 16px; right: 16px; left: auto;
}
.service-card--included .price-tag { margin-top: 8px; }

/* ---------- Portafolio ---------- */
.portfolio { padding: 60px 5vw 100px; max-width: 1280px; margin: 0 auto; }
.case-study {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.case-visual {
  background: var(--bg-2);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.case-study:hover .case-visual img { transform: scale(1.04); }
.case-content { padding: 40px 44px 40px 0; }
.case-kicker { font-size: 0.8rem; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 10px; }
.case-content h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; margin-bottom: 16px; }
.case-content p { color: var(--ink-mute); margin-bottom: 22px; }
.case-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.case-link { color: var(--accent-text); font-weight: 500; font-size: 0.92rem; }
.case-link:hover { text-decoration: underline; }

.case-study--alt { grid-template-columns: 1.1fr 0.9fr; margin-top: 30px; }
.case-study--alt .case-visual { order: 2; }
.case-study--alt .case-content { padding: 40px 0 40px 44px; }

@media (max-width: 720px) {
  .case-study { grid-template-columns: 1fr; }
  .case-content { padding: 0 28px 32px; }
  .case-study--alt .case-visual { order: 0; }
  .case-study--alt .case-content { padding: 0 28px 32px; }
}

/* ---------- Modal de detalle de paquete ---------- */
.pkg-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pkg-modal[hidden] { display: none; }
.pkg-modal-backdrop { position: absolute; inset: 0; background: rgba(34,29,22,0.55); }
.pkg-modal-panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px 36px;
  box-shadow: 0 30px 70px rgba(34,29,22,0.35);
}
.pkg-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pkg-modal-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
#pkgModalTitle { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin-bottom: 20px; padding-right: 30px; }
#pkgModalBody ul { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
#pkgModalBody li { font-size: 0.92rem; color: var(--ink-soft); padding-left: 18px; position: relative; }
#pkgModalBody li::before { content: "—"; position: absolute; left: 0; color: var(--accent-text); }
body.modal-open { overflow: hidden; }

@media (max-width: 520px) {
  .pkg-modal-panel { padding: 32px 24px; max-height: 85vh; }
}

/* ---------- Franja de logos (de derecha a izquierda) ---------- */
.logo-marquee {
  margin-top: clamp(40px, 5vw, 64px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logo-marquee-scroll 45s linear infinite;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}
.logo-chip {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 0 14px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.logo-chip--dark { background: var(--ink); }
.logo-chip img { height: 100%; width: auto; max-width: none; object-fit: contain; }
.logo-chip--wide { padding: 0 28px; }
.logo-chip--wide img { height: 62%; }
.logo-chip--black { background: #000; padding: 0; overflow: hidden; }
.logo-chip--black img { width: 120px; height: 120px; object-fit: cover; }
.logo-chip--sama { padding: 0 26px; }
.logo-chip--sama img { height: 72%; }
@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-marquee-track { animation: none; width: auto; }
  .logo-marquee-group { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .logo-marquee-group[aria-hidden="true"] { display: none; }
  .logo-chip[aria-hidden="true"] { display: none; }
}
/* ---------- Proceso ---------- */
.process { padding: 60px 5vw 110px; max-width: 1280px; margin: 0 auto; }
.process-list {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 30px;
}
.process-num { font-family: var(--font-display); font-style: italic; color: var(--accent-text); font-size: 1.3rem; }
.process-step h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin: 12px 0 8px; }
.process-step p { color: var(--ink-mute); font-size: 0.9rem; }

/* ---------- Contacto / Form ---------- */
.contact { background: var(--ink); color: var(--bg); padding: 100px 5vw; }
.contact .section-kicker { color: var(--gold); }
.contact .section-title { color: var(--bg); }
.contact .section-sub { color: rgba(244,239,228,0.65); }
.contact-inner { max-width: 760px; margin: 0 auto; }

.brief-form { margin-top: 46px; }
fieldset {
  border: none;
  border-top: 1px solid rgba(244,239,228,0.14);
  padding: 30px 0;
}
fieldset:first-of-type { border-top: none; padding-top: 0; }
legend {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 18px;
  padding: 0;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.86rem;
  color: rgba(244,239,228,0.75);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  background: rgba(244,239,228,0.06);
  border: 1px solid rgba(244,239,228,0.18);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), background .3s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(244,239,228,0.1);
}
.form-row textarea { resize: vertical; }
.form-row select { appearance: none; cursor: pointer; }

.form-row--checkboxes { display: flex; flex-direction: column; }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(244,239,228,0.85);
  cursor: pointer;
  border-bottom: 1px solid rgba(244,239,228,0.08);
}
.checkbox-row:last-child { border-bottom: none; }
.checkbox-row input[type="checkbox"] {
  width: 20px; height: 20px;
  min-width: 20px;
  margin-top: 1px;
  accent-color: var(--accent-text);
  cursor: pointer;
}
.checkbox-row--locked { color: rgba(244,239,228,0.55); cursor: default; }
.checkbox-row--locked input[type="checkbox"] { cursor: not-allowed; }
.checkbox-row em { font-style: italic; color: var(--gold); }

/* ---------- Nivel de redes / opciones de sesión de fotos (checkbox padre + sub-opciones) ---------- */
.checkbox-row--parent {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(244,239,228,0.08);
  cursor: default;
}
.checkbox-row--parent > label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(244,239,228,0.85);
  cursor: pointer;
}
.checkbox-row-label { font-size: 0.9rem; color: rgba(244,239,228,0.85); margin-bottom: 4px; }
.nested-fieldset {
  border: none;
  border-left: 2px solid rgba(244,239,228,0.18);
  margin: 14px 0 0 32px;
  padding: 4px 0 4px 18px;
  transition: opacity 0.25s var(--ease);
}
.nested-fieldset[disabled] { opacity: 0.45; }
.nested-fieldset legend {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(244,239,228,0.55);
  margin-bottom: 10px;
}
.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.87rem;
  color: rgba(244,239,228,0.8);
  cursor: pointer;
}
.radio-row input[type="radio"] { width: 18px; height: 18px; min-width: 18px; margin-top: 1px; accent-color: var(--accent-text); cursor: pointer; }
.field-hint { font-size: 0.78rem; color: rgba(244,239,228,0.5); margin: 6px 0 10px; line-height: 1.5; }
.checkbox-row--sub { padding-left: 32px; border-bottom: none; padding-top: 6px; padding-bottom: 6px; }

.price-summary {
  margin: 8px 0 22px;
  padding: 18px 22px;
  background: rgba(244,239,228,0.06);
  border: 1px solid rgba(244,239,228,0.18);
  border-radius: 14px;
}
.price-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(244,239,228,0.7);
}
.price-summary-row + .price-summary-row { margin-top: 10px; }
.price-summary-row strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--bg);
  white-space: nowrap;
}

.btn-submit { width: 100%; text-align: center; margin-top: 10px; border: none; }
.btn-submit:hover { background: var(--accent-text); }
.form-fallback { margin-top: 18px; font-size: 0.85rem; color: rgba(244,239,228,0.6); text-align: center; }
.form-fallback a { color: var(--gold); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { padding: 60px 5vw 40px; text-align: center; background: var(--bg-2); }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; margin-bottom: 6px; }
.footer-tag { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 22px; }
.footer-links { display: flex; justify-content: center; gap: 26px; margin-bottom: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent-text); }
.footer-copy { font-size: 0.8rem; color: var(--ink-mute); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 78%; max-width: 320px; height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px;
    gap: 28px;
    transition: right 0.4s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
  }
  .nav-links.is-open { right: 0; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-self: center; max-width: 320px; max-height: none; }
}

/* ---------- Planes de administración ---------- */
.admin-plans { margin-top: 56px; text-align: center; }
.admin-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); margin-bottom: 8px; }
.admin-sub { max-width: 560px; margin: 0 auto; font-size: 0.95rem; color: var(--ink-soft); }
.admin-grid {
  margin: 32px auto 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: start;
  text-align: left;
}
.general-conditions { margin: 28px auto 0; max-width: 760px; text-align: left; }
#pkgModalBody h4 { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin: 20px 0 8px; }
#pkgModalBody h4:first-child { margin-top: 0; }
#pkgModalBody p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
#adminPlans { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---------- Cuadro comparativo ---------- */
.compare { margin-top: 64px; text-align: center; }
.compare-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); margin-bottom: 8px; }
.compare-sub { font-size: 0.95rem; color: var(--ink-soft); margin: 0 auto 28px; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.9rem; color: var(--ink-soft); }
.compare-table th, .compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table thead th { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); text-align: center; background: var(--bg-2); position: sticky; top: 0; }
.compare-table thead th small { display: block; font-family: var(--font-body); font-size: 0.8rem; color: var(--ink-mute); margin-top: 2px; }
.compare-table tbody th { font-weight: 500; color: var(--ink); text-align: left; min-width: 200px; }
.compare-table td { text-align: center; }
.compare-table .compare-featured { background: #fdfbf6; box-shadow: inset 0 3px 0 var(--accent-text); }
.compare-table tbody tr:hover { background: rgba(0,0,0,0.02); }
.cmp-yes { color: var(--accent-text); font-weight: 700; font-size: 1.1rem; }
.cmp-no { color: var(--ink-mute); opacity: 0.6; }
.compare-note { margin-top: 14px; font-size: 0.85rem; color: var(--ink-mute); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare-hint { display: none; margin: 0 0 10px; font-size: 0.8rem; color: var(--ink-mute); }
@media (max-width: 760px) {
  .compare-hint { display: block; }
  .compare-table { min-width: 640px; font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 10px 10px; }
  .compare-table tbody th { min-width: 140px; position: sticky; left: 0; background: #fff; box-shadow: 1px 0 0 var(--line); }
  .compare-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
}

/* ---------- Logo SAMA ---------- */
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 48px; width: auto; display: block; transition: height 0.4s var(--ease); }
.nav.is-scrolled .nav-logo img { height: 40px; }
.footer-logo img { height: 110px; width: auto; display: block; margin: 0 auto; }
@media (max-width: 860px) { .nav-logo img { height: 38px; } }

/* ============================================================
   Video de portada (el <img> queda debajo como respaldo)
   ============================================================ */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}
.hero-video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ============================================================
   Capa de modernización (ritmo editorial: un mensaje por bloque,
   titulares grandes, bandas alternas, tarjetas redondeadas).
   Bloque aislado: borrarlo devuelve el sitio al diseño anterior.
   ============================================================ */
:root {
  --band: #efe7d7;
  --radius-tile: 26px;
  --shadow-soft: 0 1px 2px rgba(34,29,22,0.05), 0 12px 32px rgba(34,29,22,0.07);
  --shadow-lift: 0 2px 4px rgba(34,29,22,0.06), 0 24px 48px rgba(34,29,22,0.12);
}

.nav.is-scrolled {
  background: rgba(244,239,228,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.reveal { transform: translateY(32px) scale(0.985); transition-duration: 0.9s; }
.reveal.is-visible { animation: none; }

.hero-title {
  font-size: clamp(2.5rem, 5.8vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 540px; }
.hero-actions { align-items: center; gap: 12px 22px; }
.hero-actions .btn-ghost {
  border: 0;
  padding: 14px 6px;
  color: var(--accent-text);
  font-weight: 500;
}
.hero-actions .btn-ghost:hover { transform: none; }
.hero-actions .btn-ghost::after {
  content: "\203A";
  display: inline-block;
  margin-left: 0.35em;
  font-size: 1.3em;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.hero-actions .btn-ghost:hover::after { transform: translateX(4px); }

.services, .packages, .extras, .portfolio, .process {
  max-width: none;
  margin: 0;
  padding-block: clamp(72px, 9vw, 130px);
  padding-inline: max(5vw, calc((100% - 1280px) / 2));
}
.services, .extras, .process { background: var(--band); }
.contact { padding-block: clamp(80px, 10vw, 130px); }

.section-kicker, .section-title, .section-sub { text-align: center; margin-inline: auto; }
.section-kicker { margin-bottom: 12px; }
.section-title {
  max-width: 860px;
  padding-top: 0;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 18px;
}
.section-title::before { display: none; }
.section-sub { max-width: 640px; font-size: clamp(1rem, 1.3vw, 1.15rem); margin-bottom: 0; }

.services-grid {
  margin-top: clamp(40px, 5vw, 64px);
  gap: 20px;
  background: none;
  border: 0;
}
.service-card {
  background: var(--paper);
  border-radius: var(--radius-tile);
  padding: 40px 34px;
  box-shadow: var(--shadow-soft);
}
.service-card:hover { background: var(--paper); transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.pricing-grid { margin-top: clamp(40px, 5vw, 64px); }
.price-card {
  border: 0;
  border-radius: var(--radius-tile);
  padding: 40px 30px;
  box-shadow: var(--shadow-soft);
}
.price-card:hover { box-shadow: var(--shadow-lift); }
.price-card--featured { background: var(--paper); box-shadow: 0 0 0 2px var(--accent), var(--shadow-lift); }
.price-tag { font-size: 2.1rem; letter-spacing: -0.02em; }
.maintenance-note {
  background: var(--paper);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-soft);
  padding: 26px 32px;
  text-align: center;
}

.case-study {
  border: 0;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  margin-top: clamp(40px, 5vw, 64px);
}
.case-content h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.02em; }

.process-list { margin-top: clamp(40px, 5vw, 64px); gap: 20px; }
.process-step {
  background: var(--paper);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 720px) {
  .service-card { padding: 30px 26px; }
  .price-card { padding: 34px 26px; }
  .case-study { border-radius: 24px; }
}

/* ============================================================
   Proyectos: galería vertical que se expande al pasar el cursor.
   Sin cursor o en pantallas angostas son tarjetas apiladas.
   ============================================================ */
.project-stack {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  gap: 20px;
}
.project-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.project-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.project-info { padding: 28px 28px 32px; }
.project-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.project-more p { color: var(--ink-mute); margin-bottom: 18px; }
.project-more .case-links { margin-bottom: 0; }

@media (hover: hover) and (min-width: 861px) {
  .project-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: min(80vh, 700px);
  }
  .project-panel {
    flex: 1 1 0;
    min-height: 112px;
    border-bottom: 14px solid transparent;
    background: var(--ink);
    background-clip: padding-box;
    box-shadow: none;
    transition: flex-grow 0.8s var(--ease);
  }
  .project-panel:first-child { flex-grow: 5; }
  .project-stack:hover .project-panel,
  .project-stack:focus-within .project-panel { flex-grow: 1; }
  .project-stack .project-panel:hover,
  .project-stack .project-panel:focus-within { flex-grow: 5; }

  .project-img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    transition: transform 1s var(--ease);
  }
  .project-panel:hover .project-img { transform: scale(1.04); }
  .project-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34,29,22,0.12) 0%, rgba(34,29,22,0.82) 100%);
  }
  .project-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px 36px;
    color: var(--bg);
  }
  .project-kicker { color: #e0b66c; margin-bottom: 6px; }
  .project-info h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: 0; }
  .project-more {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.7s var(--ease), opacity 0.45s var(--ease);
  }
  .project-more p { color: rgba(244,239,228,0.9); max-width: 640px; margin: 12px 0 16px; }
  .project-more .case-link { color: #f0a770; }
  .project-stack:not(:hover):not(:focus-within) .project-panel:first-child .project-more,
  .project-stack .project-panel:hover .project-more,
  .project-stack .project-panel:focus-within .project-more {
    max-height: 260px;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-panel, .project-img, .project-more { transition: none !important; }
}

/* ============================================================
   Portada centrada a pantalla completa (video/foto de fondo).
   Bloque aislado: borrarlo devuelve la portada de dos columnas.
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  justify-content: center;
}
.hero-shape, .hero-mesh { display: none; }
.hero-inner {
  position: static;
  display: block;
  text-align: center;
}
.hero-content { max-width: 920px; margin-inline: auto; }

/* El marco en arco pasa a ser el fondo de toda la portada.
   Se extiende 60px por arriba para que el parallax (JS) no deje huecos. */
.hero-visual {
  position: absolute;
  top: -60px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: auto;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  justify-self: auto;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(34,29,22,0.62) 0%, rgba(34,29,22,0.38) 42%, rgba(34,29,22,0.72) 100%);
}
.hero-badge { right: 5vw; bottom: 36px; }
@media (max-width: 720px) {
  .hero-badge { right: 18px; bottom: 18px; }
}

.hero .kicker { color: #e0b66c; }
.hero-title {
  color: var(--bg);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  text-shadow: 0 2px 30px rgba(34,29,22,0.35);
}
.hero-title em { color: #f0a770; }
.hero-sub {
  color: rgba(244,239,228,0.88);
  max-width: 620px;
  margin-inline: auto;
}
.hero-actions { justify-content: center; }
.hero .btn-primary { background: var(--bg); color: var(--ink); }
.hero .btn-primary:hover { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-actions .btn-ghost { color: var(--bg); }

/* Navegación y logo claros mientras están sobre la portada (sin scroll) */
.nav-logo .logo-on-dark { display: none; }
.nav:not(.is-scrolled) .nav-logo .logo-on-light { display: none; }
.nav:not(.is-scrolled) .nav-logo .logo-on-dark { display: block; }
.nav:not(.is-scrolled) .nav-toggle span { background: var(--bg); }
@media (min-width: 861px) {
  .nav:not(.is-scrolled) .nav-links a { color: rgba(244,239,228,0.92); }
  .nav:not(.is-scrolled) .nav-links a:not(.nav-cta)::after { background: var(--bg); }
  .nav:not(.is-scrolled) .nav-cta { background: var(--bg); color: var(--ink) !important; }
  .nav:not(.is-scrolled) .nav-cta:hover { background: #fff; }
}
