/* web.css — la web de una página del negocio (/<link>/web). Los colores y la tipografía
   salen del estilo de la carta (variables en <body>). */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.web { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 'Geist', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.web img { display: block; max-width: 100%; }
.web a { color: inherit; }
.w-in { width: min(1180px, 100% - 32px); margin-inline: auto; }
.w-k { margin: 0 0 14px; font: 500 11px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.web h1, .web h2 { font-family: var(--display); font-weight: var(--dw); text-transform: var(--upper); letter-spacing: -.02em; margin: 0; }
.web h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; }
.w-svg, .web svg { width: 18px; height: 18px; flex: none; }

/* botones */
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 99px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: .01em; border: 1px solid transparent; transition: transform .25s cubic-bezier(.2,.8,.2,1), filter .2s, background .2s; white-space: nowrap; }
.w-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.w-btn.vidrio { background: rgba(255,255,255,.14); color: #fff !important; border-color: rgba(255,255,255,.34); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.w-btn.borde { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.w-btn.chico { min-height: 40px; padding: 0 18px; font-size: 13.5px; }
.w-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--ink); }
.w-link:hover { color: var(--accent); }

/* navegación: transparente sobre el hero, sólida al bajar */
.w-nav { position: fixed; z-index: 40; top: 0; left: 0; right: 0; padding: 14px 0; color: #fff; transition: background .3s, color .3s, padding .3s, box-shadow .3s; }
.con-franja .w-nav { top: 40px; }
.w-nav .w-in { display: flex; align-items: center; gap: 24px; }
.w-marca { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.w-marca span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; font: 600 13px/1 'Geist Mono', monospace; letter-spacing: .04em; flex: none; }
.w-marca span.con-logo { border: 0; overflow: hidden; background: #000; width: 44px; height: 44px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.w-marca span.con-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-marca b { font-family: var(--display); font-weight: var(--dw); text-transform: var(--upper); font-size: 20px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-nav nav { display: flex; gap: 26px; font-size: 14px; }
.w-nav nav a { text-decoration: none; opacity: .86; }
.w-nav nav a:hover { opacity: 1; }
.w-nav .w-btn.chico { background: rgba(255,255,255,.16); color: #fff !important; border-color: rgba(255,255,255,.4); backdrop-filter: blur(10px); }
.w-nav.solida { background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--ink); padding: 10px 0; box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.w-nav.solida .w-btn.chico { background: var(--accent); color: var(--accent-ink) !important; border-color: transparent; }
@media (max-width: 820px) { .w-nav nav { display: none; } }

/* hero */
.w-hero { position: relative; min-height: max(640px, 100svh); display: grid; grid-template-rows: 1fr auto; overflow: hidden; color: #fff; background: #111; isolation: isolate; }
.w-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); z-index: -2; animation: w-zoom 2.4s cubic-bezier(.2,.8,.2,1) both; will-change: transform; }
@keyframes w-zoom { from { transform: scale(1.16); opacity: .2; } to { transform: scale(1.06); opacity: 1; } }
.w-hero-velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.82) 100%), radial-gradient(120% 80% at 0% 100%, rgba(0,0,0,.55), transparent 60%); }
.w-hero.sin-foto { background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--accent) 55%, #000), #0B0A09 70%); }
.w-hero-tx { align-self: end; padding: 140px 0 40px; }
.w-hero .w-k { color: rgba(255,255,255,.82); }
.w-hero h1 { padding-top: .14em; font-size: clamp(3.2rem, 11vw, 9rem); line-height: .92; letter-spacing: -.035em; max-width: 12ch; text-wrap: balance; animation: w-sube 1.1s .15s cubic-bezier(.2,.8,.2,1) both; }
.w-frase { margin: 22px 0 32px; max-width: 34ch; font-size: clamp(1.1rem, 2.1vw, 1.45rem); line-height: 1.4; color: rgba(255,255,255,.88); animation: w-sube 1.1s .3s cubic-bezier(.2,.8,.2,1) both; }
.w-ctas { display: flex; flex-wrap: wrap; gap: 12px; animation: w-sube 1.1s .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes w-sube { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.w-hero-pie { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.2); font-size: 14px; color: rgba(255,255,255,.86); }
.w-hero-pie span { display: inline-flex; align-items: center; gap: 8px; }

/* secciones */
.w-sec { padding: clamp(80px, 12vw, 150px) 0; }
.w-casa-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 7vw, 110px); align-items: end; }
.w-cita { font-size: clamp(2.2rem, 5.4vw, 4.4rem) !important; line-height: 1 !important; text-wrap: balance; }
.w-texto { margin: 0 0 18px; font-size: 18px; color: var(--muted); max-width: 46ch; }
.w-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 28px; }
.w-chips li { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 13.5px; }
.w-cab { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.w-dest { background: var(--alt); }
.w-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.w-card { display: grid; gap: 14px; text-decoration: none; }
.w-card-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: var(--line); }
.w-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.w-card:hover .w-card-img img { transform: scale(1.06); }
.w-card-img i { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font: 500 10px/1 'Geist Mono', monospace; font-style: normal; letter-spacing: .06em; }
.w-card-tx { display: grid; gap: 3px; }
.w-card-tx small { font: 500 10.5px/1.2 'Geist Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.w-card-tx b { font-family: var(--display); font-weight: var(--dw); text-transform: var(--upper); font-size: 23px; line-height: 1.1; }
.w-card-tx em { font-style: normal; font-family: 'Geist Mono', monospace; color: var(--accent); font-size: 14px; }
.w-mosaico { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 180px; grid-auto-flow: dense; gap: 12px; }
.w-mosaico figure { margin: 0; overflow: hidden; border-radius: 14px; background: var(--line); }
.w-mosaico img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.w-mosaico figure:hover img { transform: scale(1.05); }
.w-mosaico .m0 { grid-column: span 2; grid-row: span 2; }
.w-mosaico .m3 { grid-row: span 2; }
.w-visita { background: var(--alt); }
.w-visita-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.w-visita dl { display: grid; gap: 20px; margin: 30px 0 34px; }
.w-visita dt { display: flex; align-items: center; gap: 8px; font: 500 11px/1 'Geist Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.w-visita dd { margin: 0; font-size: 19px; }
.w-mapa { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.w-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.oscuro .w-mapa iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }
.w-pie { padding: 48px 0 110px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.w-pie .w-in { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
.w-pie b { display: block; color: var(--ink); font-family: var(--display); font-weight: var(--dw); text-transform: var(--upper); font-size: 22px; }
.w-pie nav { display: flex; gap: 22px; }
.w-pie a { text-decoration: none; }
.w-pie a:hover { color: var(--accent); }

/* barra fija en el celular */
.w-barra { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: none; gap: 8px; padding: 8px; border-radius: 99px; background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.25); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.w-barra .w-btn { flex: 1; min-height: 48px; padding: 0 14px; }
.w-barra .w-btn.vidrio { background: transparent; color: var(--ink) !important; border-color: var(--line); }

/* aparecer al bajar */
.w-rev { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--k, 0) * 90ms); }
.w-rev.in { opacity: 1; transform: none; }

/* franjas (vista previa del upsell o carta en prueba) */
.vv-up, body.web .vv-franja { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 12px; font: 500 13px/1.2 'Geist', system-ui, sans-serif; color: #F4EEE4; background: rgba(12,10,9,.9); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.vv-up span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-up a, body.web .vv-franja a { flex: none; padding: 7px 14px; border-radius: 99px; color: #1A1208; font-weight: 600; text-decoration: none; background: linear-gradient(135deg, #F6E4BC, #D9B77A 45%, #B08A52); font-size: 12.5px; }
body.web .vv-franja i { width: 6px; height: 6px; border-radius: 50%; background: #E9C46A; }
body.web .vv-franja:not(.duenio) a { background: transparent; color: #F4EEE4; border: 1px solid rgba(255,255,255,.22); }

@media (max-width: 900px) {
  .w-casa-in, .w-visita-in { grid-template-columns: minmax(0, 1fr); }
  .w-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .w-mosaico { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .w-mosaico .m3 { grid-row: span 1; }
}
@media (max-width: 620px) {
  .w-barra { display: flex; }
  .w-nav .w-btn.chico { display: none; }
  .w-hero-tx { padding-top: 120px; }
  .w-hero .w-ctas .w-btn { flex: 1 1 100%; }
  .w-cab { flex-direction: column; align-items: flex-start; }
  .w-card-tx b { font-size: 19px; }
  .vv-up .mas { display: none; }
  .vv-up { font-size: 12px; }
}

/* foto de portada chica (menos de 1600 px útiles): en pantallas grandes no se estira. La de fondo va desenfocada
   (el desenfoque esconde la resolución) y la nítida se muestra enmarcada, a un tamaño que la foto aguanta. */
.w-hero-foto { display: none; }
@media (min-width: 900px) {
  .w-hero.marco .w-hero-img { filter: blur(28px) brightness(.55) saturate(1.15); transform: scale(1.15); animation: none; }
  .w-hero.marco .w-hero-velo { background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.25) 100%), linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 70%, rgba(0,0,0,.6)); }
  .w-hero.marco .w-hero-foto { display: block; position: absolute; z-index: -1; right: max(24px, calc((100vw - 1180px) / 2)); top: 50%; width: min(38vw, 600px); aspect-ratio: 4 / 3; margin: 0; transform: translateY(-50%) rotate(1.2deg); border-radius: 22px; overflow: hidden; box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12); animation: w-entra 1.2s .2s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes w-entra { from { opacity: 0; transform: translateY(-44%) rotate(1.2deg); } to { opacity: 1; transform: translateY(-50%) rotate(1.2deg); } }
  .w-hero.marco .w-hero-foto img { width: 100%; height: 100%; object-fit: cover; }
  .w-hero.marco .w-hero-tx { align-self: center; padding: 120px calc(min(38vw, 600px) + 48px) 40px 0; }
  .w-hero.marco h1 { font-size: clamp(3.2rem, 7.4vw, 7.2rem); }
}
