/* VS Design · web del estudio
   Sensación de página de producto de Apple (referencia elegida por Víctor): fondo claro, tipografía
   del sistema muy gruesa y apretada, escenarios grandes y redondeados con sombras suaves, y las webs
   enseñadas funcionando de verdad dentro de un móvil o de un navegador. Un único color: burdeos.
   Se escribe primero para móvil; los @media amplían a pantallas grandes. */

:root {
  --fondo: #f6f5f3;
  --hundido: #eceae6;      /* escenarios */
  --tarjeta: #ffffff;
  --tinta: #201d1b;        /* titulares */
  --texto: #3d3936;        /* párrafos fuertes */
  --suave: #66615c;        /* párrafos (5:1 sobre el fondo y los escenarios) */
  --gris: #8a8580;         /* segunda línea de los titulares (solo texto grande) */
  --linea: rgba(32, 29, 27, .09);
  --vino: #7d2340;
  --vino-hover: #681c35;
  --vino-suave: #f3e3e8;
  --vino-tinta: #5c1830;   /* texto sobre --vino-suave */
  --sombra: 0 40px 90px -40px rgba(32, 29, 27, .3), 0 2px 8px rgba(32, 29, 27, .05);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --curva: cubic-bezier(.16, 1, .3, 1);
  --r-escenario: 40px;
  --r-tarjeta: 28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); background: var(--fondo); color: var(--texto);
  font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul, ol { list-style: none; }
strong { color: var(--tinta); }
::selection { background: var(--vino); color: #fff; }
:focus-visible { outline: 3px solid var(--vino); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

/* Aparición al hacer scroll: solo con JavaScript, para que sin él todo se vea. */
.js .aparece { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--curva), transform .8s var(--curva); }
.js .aparece.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .aparece { opacity: 1; transform: none; transition: none; }
}

/* ── Navegación ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(16px, env(safe-area-inset-left)); transition: background .3s, box-shadow .3s;
}
.nav.pegada { background: rgba(246, 245, 243, .8); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 1px 0 var(--linea); }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; color: var(--tinta); white-space: nowrap; }
.marca-logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--vino); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: -.03em; }
.marca-texto { display: none; }
.nav-enlaces { display: flex; gap: 4px; }
.pastilla { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--tinta); transition: background .2s; }
.pastilla:hover, .pastilla[aria-current="page"] { background: rgba(32, 29, 27, .07); }
.pastilla.vino { background: var(--vino); color: #fff; }
.pastilla.vino:hover { background: var(--vino-hover); }

/* ── Botones ── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; transition: background .2s, transform .15s var(--curva);
}
.boton:active { transform: scale(.97); }
.boton.vino { background: var(--vino); color: #fff; }
.boton.vino:hover { background: var(--vino-hover); }
.boton.suave { background: rgba(32, 29, 27, .06); color: var(--tinta); }
.boton.suave:hover { background: rgba(32, 29, 27, .1); }
.boton.blanco { background: #fff; color: var(--tinta); }
.enlace-flecha { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; color: var(--vino); }
.enlace-flecha::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--curva); }
.enlace-flecha:hover::after { transform: translateX(3px) rotate(45deg); }

/* ── Titulares: dos líneas, la segunda en gris ── */
.titular, .titulo { color: var(--tinta); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.titular span, .titulo span { display: block; }
.gris { color: var(--gris); }
.titular { font-size: clamp(2.5rem, 9vw, 5.4rem); }
.titulo { font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
.centrado { text-align: center; }
.entradilla { max-width: 42ch; margin: 18px auto 0; font-size: clamp(1.08rem, 2.6vw, 1.3rem); color: var(--suave); font-weight: 500; }
.acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ── Estructura de las secciones ── */
.portada { padding: 112px 16px 0; text-align: center; max-width: 1180px; margin: 0 auto; }
.cabecera-pagina { padding: 120px 16px 0; text-align: center; max-width: 1120px; margin: 0 auto; }
.bloque { max-width: 1120px; margin: 0 auto; padding: 88px 16px 0; }
.texto p { margin-top: 18px; max-width: 48ch; font-size: 1.12rem; color: var(--suave); }
.texto.centrado p { margin-left: auto; margin-right: auto; }
.escenario { margin-top: 34px; padding: 26px 12px; border-radius: var(--r-escenario); background: var(--hundido); }
.pie-escenario { margin-top: 14px; font-size: .9rem; color: var(--suave); text-align: center; }

/* ── El iPhone, dibujado con CSS, con una web de verdad dentro ── */
.iphone {
  width: min(84vw, 320px); aspect-ratio: 9 / 19.2; margin: 0 auto; padding: 11px; border-radius: 56px; background: #1d1b1a;
  box-shadow: var(--sombra), inset 0 0 0 2px #3a3633;
}
.iphone-pantalla { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 45px; background: #fff; overflow: hidden; }
.iphone-isla { position: absolute; top: 10px; left: 50%; width: 27%; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #000; z-index: 3; }
/* Barra de estado: hora a la izquierda e iconos a la derecha, bien separados de la isla. */
.iphone-estado { flex: none; display: grid; grid-template-columns: 1fr 27% 1fr; align-items: center; height: 46px; padding: 2px 6px 0; background: #1b1d1f; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: -.01em; }
.iphone-estado .reloj { justify-self: center; }
.iphone-iconos { grid-column: 3; justify-self: center; display: flex; align-items: center; gap: 4px; }
/* La web se dibuja a 390 px, el ancho de un iPhone de verdad, y se reduce para caber en la pantalla. */
.iphone-web { position: relative; flex: 1; overflow: hidden; }
.iphone-web iframe { position: absolute; top: 0; left: 0; width: 390px; height: calc(100% / var(--k, 1)); border: 0; transform: scale(var(--k, 1)); transform-origin: 0 0; background: #1b1d1f; }

/* ── Navegador de escritorio con una web dentro ── */
.navegador { max-width: 980px; margin: 0 auto; border-radius: 18px; background: #fff; box-shadow: var(--sombra); overflow: hidden; }
.navegador-barra { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; background: #f1efec; border-bottom: 1px solid var(--linea); }
.navegador-barra i { width: 12px; height: 12px; border-radius: 50%; background: #e2ddd6; }
.navegador-barra i:nth-child(1) { background: #ec6a5e; } .navegador-barra i:nth-child(2) { background: #f4bf4f; } .navegador-barra i:nth-child(3) { background: #61c554; }
.navegador-url { flex: 1; max-width: 360px; margin: 0 auto; padding: 5px 12px; border-radius: 8px; background: #fff; font-size: .78rem; color: var(--suave); text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.navegador-marco { position: relative; height: var(--alto, 520px); overflow: hidden; }
.navegador-marco iframe { position: absolute; top: 0; left: 0; width: var(--base, 1200px); height: calc(var(--alto, 520px) / var(--k, 1)); border: 0; transform: scale(var(--k, 1)); transform-origin: 0 0; }

/* ── Servicios en filas (portada) ── */
.filas { margin-top: 36px; border-radius: var(--r-tarjeta); background: var(--tarjeta); box-shadow: 0 1px 2px rgba(32, 29, 27, .04); overflow: hidden; }
.fila { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 18px; padding: 24px; border-bottom: 1px solid var(--linea); transition: background .2s; }
.fila:last-child { border-bottom: 0; }
.fila:hover { background: #fbfaf8; }
.fila h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; letter-spacing: -.025em; color: var(--tinta); }
.fila p { grid-column: 1; color: var(--suave); max-width: 52ch; }
.fila .precio-fila { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-weight: 800; color: var(--tinta); font-size: 1.15rem; white-space: nowrap; }
.fila .precio-fila small { display: block; font-size: .78rem; font-weight: 600; color: var(--suave); }

/* ── Chat de WhatsApp (iPhone) ── */
.wa { width: min(100%, 380px); margin: 0 auto; border-radius: 34px; overflow: hidden; background: #efe7de; box-shadow: var(--sombra); font-family: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; }
.wa-cab { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; background: #f6f6f6; border-bottom: 1px solid #e3e3e3; }
.wa-atras { width: 11px; height: 11px; margin: 0 4px 0 6px; border-left: 2.5px solid #007aff; border-bottom: 2.5px solid #007aff; transform: rotate(45deg); }
.wa-foto { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--vino); color: #fff; font-size: .78rem; font-weight: 800; }
.wa-quien { line-height: 1.2; }
.wa-quien strong { display: block; font-size: 1rem; color: #000; }
.wa-quien small { font-size: .78rem; color: #6e6e73; }
.wa-hilo {
  display: grid; gap: 6px; padding: 14px 12px 18px;
  background-color: #efe7de;
  background-image: radial-gradient(rgba(120, 100, 80, .07) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.wa-dia { justify-self: center; margin: 4px 0 6px; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .85); font-size: .74rem; font-weight: 600; color: #54656f; }
.wa-msg { position: relative; max-width: 80%; padding: 7px 10px 8px; border-radius: 12px; font-size: .95rem; line-height: 1.35; color: #111b21; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa-msg.suyo { justify-self: start; background: #fff; border-top-left-radius: 4px; }
.wa-msg.nuestro { justify-self: end; background: #dcf8c6; border-top-right-radius: 4px; }
.wa-hora { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 8px 0 -4px 10px; font-size: .72rem; color: #5f6f78; }
.wa-hora svg { color: #53bdeb; }
.wa-pie { display: flex; align-items: center; gap: 8px; padding: 10px 12px 16px; background: #f6f6f6; }
.wa-pie span { flex: 1; height: 34px; border-radius: 18px; background: #fff; border: 1px solid #e3e3e3; }
.wa-pie i { width: 34px; height: 34px; border-radius: 50%; background: #00a884; }

/* ── Tarjetas de texto (servicios, pasos, preguntas) ── */
.rejilla { display: grid; gap: 14px; margin-top: 36px; }
.tarjeta { padding: 28px 24px; border-radius: var(--r-tarjeta); background: var(--tarjeta); box-shadow: 0 1px 2px rgba(32, 29, 27, .04); }
.tarjeta h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--tinta); }
.tarjeta p { margin-top: 8px; color: var(--suave); }
.lista-check { display: grid; gap: 10px; margin-top: 18px; }
.lista-check li { position: relative; padding-left: 26px; color: var(--texto); }
.lista-check li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--vino); border-bottom: 2.5px solid var(--vino); transform: rotate(-45deg); }
.servicio { display: grid; gap: 28px; padding-top: 88px; }
.servicio .numero { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px; background: var(--vino-suave); color: var(--vino-tinta); font-weight: 800; }
.servicio .arte { display: grid; place-items: center; padding: 30px 16px; border-radius: var(--r-escenario); background: var(--hundido); }
.etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.etiquetas li { padding: 7px 13px; border-radius: 999px; background: var(--vino-suave); color: var(--vino-tinta); font-size: .88rem; font-weight: 600; }
.lista-pasos { display: grid; gap: 14px; margin: 36px auto 0; max-width: 760px; counter-reset: paso; }
.lista-pasos li { counter-increment: paso; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; padding: 24px; border-radius: var(--r-tarjeta); background: var(--tarjeta); box-shadow: 0 1px 2px rgba(32, 29, 27, .04); }
.lista-pasos li::before { content: counter(paso); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--vino-suave); color: var(--vino-tinta); font-weight: 800; font-size: 1.1rem; }
.lista-pasos h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--tinta); }
.lista-pasos p { color: var(--suave); }

/* Mini ejemplos de funciones (servicios) */
.mini { width: min(100%, 360px); padding: 20px; border-radius: 24px; background: #fff; box-shadow: var(--sombra); }
.mini-titulo { font-weight: 800; color: var(--tinta); letter-spacing: -.02em; }
.mini-sub { font-size: .88rem; color: var(--suave); }
.mini-huecos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mini-huecos span { display: grid; place-items: center; min-height: 42px; border-radius: 12px; background: var(--vino-suave); color: var(--vino-tinta); font-weight: 700; font-size: .9rem; }
.mini-huecos .sel { background: var(--vino); color: #fff; }
.mini-huecos .no { background: #f1efec; color: #726c67; text-decoration: line-through; }
.mini-boton { display: grid; place-items: center; min-height: 46px; margin-top: 14px; border-radius: 999px; background: var(--vino); color: #fff; font-weight: 700; }
.mini-lista { margin-top: 12px; display: grid; gap: 8px; }
.mini-lista li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f6f5f3; font-size: .92rem; }
.mini-lista b { color: var(--vino); }

/* ── Precios ── */
.precios { display: grid; gap: 14px; margin-top: 36px; }
.precio { display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--r-tarjeta); background: var(--tarjeta); box-shadow: 0 1px 2px rgba(32, 29, 27, .04); }
.precio h2, .precio h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--tinta); }
.precio .para { margin-top: 4px; color: var(--suave); font-size: .96rem; }
.cifra { margin-top: 14px; font-size: clamp(2.6rem, 9vw, 3.3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--tinta); }
.cifra small { font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--suave); }
.precio .lista-check { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--linea); }
.precio .boton { margin-top: auto; }
.precio .lista-check + .boton { margin-top: 26px; }
.precio.destacado { background: var(--vino); color: #fff; box-shadow: var(--sombra); }
.precio.destacado h2, .precio.destacado h3, .precio.destacado .cifra, .precio.destacado .lista-check li { color: #fff; }
.precio.destacado .cifra small, .precio.destacado .para { color: rgba(255, 255, 255, .8); }
.precio.destacado .lista-check { border-top-color: rgba(255, 255, 255, .22); }
.precio.destacado .lista-check li::before { border-color: #fff; }
.mantenimiento { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 14px; padding: 28px 24px; border-radius: var(--r-tarjeta); background: var(--hundido); }
.mantenimiento h2, .mantenimiento h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--tinta); }
.mantenimiento p { color: var(--suave); max-width: 46ch; }
.mantenimiento .cifra { margin-top: 0; font-size: clamp(2.2rem, 7vw, 2.8rem); }
.preguntas { display: grid; gap: 10px; max-width: 760px; margin: 36px auto 0; }
.preguntas details { padding: 20px 24px; border-radius: 20px; background: var(--tarjeta); }
.preguntas summary { cursor: pointer; font-weight: 700; color: var(--tinta); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--vino); }
.preguntas details[open] summary::after { content: "−"; }
.preguntas p { margin-top: 10px; color: var(--suave); }

/* ── Quiénes somos y contacto ── */
.personas { display: grid; gap: 14px; margin-top: 36px; }
.persona { display: grid; justify-items: center; gap: 4px; padding: 32px 24px; border-radius: var(--r-tarjeta); background: var(--tarjeta); text-align: center; box-shadow: 0 1px 2px rgba(32, 29, 27, .04); }
.foto { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 12px; border-radius: 50%; background: var(--tinta); color: #fff; font-size: 2rem; font-weight: 800; object-fit: cover; }
.persona:nth-child(2) .foto { background: var(--vino); }
.persona h2, .persona h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--tinta); }
.persona .rol { color: var(--suave); font-size: .95rem; }
.persona .vias { display: grid; gap: 8px; width: 100%; max-width: 280px; margin-top: 18px; }
.persona .vias .boton { min-height: 48px; font-size: .96rem; }
.caras { display: flex; justify-content: center; margin-bottom: 22px; }
.caras span { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--tinta); color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; border: 4px solid var(--fondo); }
.caras span + span { margin-left: -16px; background: var(--vino); }
.nosotros p { max-width: 44ch; margin: 18px auto 0; font-size: 1.12rem; color: var(--suave); }
.estudio-ig { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 24px; border-radius: var(--r-tarjeta); background: var(--hundido); }
.estudio-ig p { color: var(--suave); }
.contacto { max-width: 1120px; margin: 0 auto; padding: 88px 16px 0; }
.contacto-tarjeta { padding: 56px 24px; border-radius: var(--r-escenario); background: var(--tinta); color: #fff; text-align: center; box-shadow: 0 40px 90px -40px rgba(32, 29, 27, .4); }
.contacto-tarjeta .titulo { color: #fff; }
.contacto-tarjeta p { margin: 14px auto 28px; max-width: 36ch; font-size: 1.15rem; color: rgba(255, 255, 255, .78); }

/* ── Pie ── */
.pie { max-width: 1120px; margin: 0 auto; padding: 48px 16px calc(36px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .9rem; color: var(--suave); }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pie-enlaces a { text-decoration: underline; text-underline-offset: .25em; }

/* ── Páginas legales ── */
.legal { max-width: 760px; margin: 0 auto; padding: 120px 16px 0; }
.legal h1 { font-size: clamp(2.1rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.035em; color: var(--tinta); }
.legal .fecha { margin-top: 8px; color: var(--suave); font-size: .92rem; }
.legal h2 { margin-top: 34px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--tinta); }
.legal p, .legal li { margin-top: 12px; color: var(--texto); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--vino); text-decoration: underline; text-underline-offset: .2em; }
.legal .aviso-borrador { margin-top: 36px; padding: 16px 18px; border-radius: 16px; background: var(--vino-suave); color: var(--vino-tinta); font-size: .92rem; }

/* ── Pantallas medianas y grandes ── */
@media (min-width: 760px) {
  .marca-texto { display: inline; }
  .nav { padding: 16px 28px; }
  .portada { padding-top: 140px; }
  .cabecera-pagina { padding-top: 150px; }
  .escenario { padding: 36px 26px; }
  .bloque { padding-top: 140px; padding-left: 28px; padding-right: 28px; }
  .partido { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .partido .titulo { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
  .al-reves > :first-child { order: 2; }
  .fila { padding: 28px 32px; }
  .servicio { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 120px; }
  .servicio.al-reves > :first-child { order: 2; }
  .rejilla.dos { grid-template-columns: 1fr 1fr; }
  .precios { grid-template-columns: repeat(3, 1fr); }
  .personas { grid-template-columns: 1fr 1fr; }
  .contacto { padding: 140px 28px 0; }
  .contacto-tarjeta { padding: 80px 32px; }
}

/* Servicios en tarjetas (portada) */
.servicios-tarjetas { display: grid; gap: 14px; margin-top: 36px; }
.tarjeta.enlace { display: flex; flex-direction: column; transition: transform .25s var(--curva), box-shadow .25s; }
.tarjeta.enlace:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.tarjeta.enlace .numero { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; background: var(--vino-suave); color: var(--vino-tinta); font-weight: 800; }
.tarjeta.enlace .enlace-flecha { margin-top: auto; padding-top: 18px; }
@media (min-width: 760px) { .servicios-tarjetas { grid-template-columns: repeat(3, 1fr); } }
