/*
Theme Name: Persiana
Description: Tema propio de Papelería y Loterías Son Rapinya (Palma): marés, persianas verdes, agua turquesa y papel de cuaderno.
Version: 1.0
Text Domain: persiana
*/

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/outfit-latin-var.woff2) format('woff2'); }
@font-face { font-family: 'Kalam'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/kalam-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Kalam'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/kalam-latin-700.woff2) format('woff2'); }

:root {
  --white: #fdfcf8;
  --paper: #ffffff;
  --mares: #ecdcb9;
  --mares-2: #dfc99c;
  --mares-d: #a88a55;
  --sea: #15928f;
  --sea-d: #0c6466;
  --sea-l: #d5efec;
  --green: #2f5f43;
  --green-d: #213f2e;
  --green-l: #e4ede5;
  --ink: #1e2927;
  --muted: #56625e;
  --margin: #de6a5e;
  --rule: #bcdbe5;
  --sun: #e8b84a;
  --r: 14px;
  --hand: 'Kalam', 'Comic Sans MS', cursive;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .34 0 0 0 0 .16 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 340 17px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.08; letter-spacing: -.02em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--paper); padding: 8px 14px; }
.hand { font-family: var(--hand); font-weight: 700; color: var(--sea); letter-spacing: 0; display: inline-block; transform: rotate(-2deg); }
.kick { font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kick::before { content: ""; width: 26px; height: 2px; background: var(--sea); border-radius: 2px; }
.kick--light { color: var(--sea-l); }
.kick--light::before { background: var(--sun); }
.h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
.h1--xl { font-size: clamp(2.6rem, 6vw, 5rem); }
.h1 .hand { font-size: 1.08em; }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.h2 .hand { font-size: 1.1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 40em; }
.link { font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--sea-l); }
.link:hover { border-color: var(--sea); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 500 .98rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-d); color: #fff; }
.btn--sea { background: var(--sea); color: #fff; }
.btn--sea:hover { background: var(--sea-d); color: #fff; }
.btn--line { border-color: var(--green); color: var(--green); background: transparent; }
.btn--line:hover { background: var(--green-l); color: var(--green-d); }
.btn--white { background: #fff; color: var(--green-d); }
.btn--white:hover { color: var(--green); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Franja superior y cabecera */
.topline { background: var(--green-d); color: #dfe9e2; font-size: .82rem; }
.topline-in { display: flex; gap: 22px; justify-content: flex-end; padding: 7px 0; }
.topline-in span { margin-right: auto; }
.topline a { color: #fff; text-decoration: none; }
.mast { position: sticky; top: 0; z-index: 40; background: rgba(253,252,248,.94); backdrop-filter: blur(8px); border-bottom: 1px solid #e8e0cc; }
.mast-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-ico { width: 38px; height: 46px; display: flex; gap: 3px; }
.bi { width: 100%; height: 100%; }
.bi rect { fill: var(--green); }
.bi line { stroke: #8fb39c; stroke-width: 2.4; }
.bi .bar { stroke: var(--green-d); stroke-width: 2; }
.brand-t { display: flex; flex-direction: column; line-height: 1; }
.brand-t em { font: 700 1.55rem/1 var(--hand); color: var(--sea); font-style: normal; }
.brand-t b { font-weight: 500; font-size: .86rem; letter-spacing: .04em; color: var(--green-d); margin-top: 3px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 400; }
.nav a:hover { background: var(--green-l); color: var(--green-d); }
.nav a.on { background: var(--green); color: #fff; }
.burger { display: none; position: relative; }
.burger summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 2px solid var(--green); border-radius: 999px; font-weight: 500; color: var(--green); }
.burger summary::-webkit-details-marker { display: none; }
.burger i { width: 18px; height: 12px; background: repeating-linear-gradient(var(--green) 0 2px, transparent 2px 5px); }
.drawer { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); background: var(--paper); border-radius: var(--r); box-shadow: 0 18px 40px rgba(20,40,30,.18); padding: 10px; display: grid; }
.drawer a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); border-bottom: 1px dashed #e7e0cf; }
.drawer a:last-child { border-bottom: 0; }
.drawer .drawer-tel { background: var(--green); color: #fff; margin-top: 6px; text-align: center; }

/* Persianas (SVG) */
.shut rect { fill: var(--green); stroke: var(--green-d); stroke-width: 1.5; }
.shut line { stroke: #4f8164; stroke-width: 2.6; }
.shut .bar { stroke: var(--green-d); stroke-width: 1.4; }

/* Hero: ventana con persianas que se abren */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 84px); background: var(--white); }
.hero-in { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero-t .lead { margin: 22px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.win { margin: 0; }
.win-frame { position: relative; aspect-ratio: 5 / 4; border: 14px solid var(--mares); outline: 1px solid var(--mares-2); border-radius: 6px; background: var(--sea-l) var(--noise); perspective: 1400px; box-shadow: 0 30px 50px -30px rgba(70,50,20,.45); }
.win-img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.win-frame .shut { position: absolute; top: 0; height: 100%; width: 50%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.win-frame .shut--l { left: 0; transform-origin: left center; animation: openL 1.6s .3s both cubic-bezier(.2,.7,.2,1); }
.win-frame .shut--r { right: 0; transform-origin: right center; animation: openR 1.6s .45s both cubic-bezier(.2,.7,.2,1); }
@keyframes openL { from { transform: rotateY(0); } to { transform: rotateY(-76deg); } }
@keyframes openR { from { transform: rotateY(0); } to { transform: rotateY(76deg); } }
.win-sill { position: relative; margin: -4px -22px 0; background: var(--mares-2) var(--noise); padding: 10px 24px 12px; border-radius: 3px; box-shadow: 0 8px 14px -8px rgba(70,50,20,.5); text-align: center; }
.win-sill .hand { color: var(--green-d); font-size: 1.15rem; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .win-frame .shut--l { animation: none; transform: rotateY(-76deg); }
  .win-frame .shut--r { animation: none; transform: rotateY(76deg); }
  html { scroll-behavior: auto; }
}

/* Secciones y fondos */
.sec { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.sec--white { background: var(--paper); }
.sec--sand { background: var(--mares) var(--noise); background-image: var(--noise), repeating-linear-gradient(180deg, transparent 0 118px, rgba(255,255,255,.35) 118px 120px); }
.grid-paper { background-color: #fff; background-image: linear-gradient(rgba(21,146,143,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(21,146,143,.13) 1px, transparent 1px); background-size: 24px 24px; }
.ruled { background-color: #fff; background-image: linear-gradient(90deg, transparent calc(4% + 0px), rgba(222,106,94,.55) calc(4% + 0px), rgba(222,106,94,.55) calc(4% + 2px), transparent calc(4% + 2px)), repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px); }
.sec-h { margin-bottom: clamp(28px, 4vw, 48px); max-width: 46em; }
.sec-h--row { display: flex; justify-content: space-between; align-items: end; gap: 20px; max-width: none; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
.split--rev > :first-child { order: 0; }
.photo { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 40px -28px rgba(30,50,40,.55); }
.photo img { width: 100%; }
.photo--tilt { transform: rotate(1.5deg); border: 10px solid #fff; border-radius: 4px; }

/* Fichas de servicios */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 46px 20px 22px; min-height: 220px; background-color: #fff; background-image: linear-gradient(var(--margin), var(--margin)), repeating-linear-gradient(180deg, transparent 0 27px, var(--rule) 27px 28px); background-size: 100% 2px, 100% 100%; background-position: 0 34px, 0 34px; background-repeat: no-repeat, repeat; border-radius: 4px; text-decoration: none; color: var(--ink); box-shadow: 0 2px 0 var(--mares-2), 0 14px 26px -18px rgba(70,50,20,.55); transition: transform .18s; }
.card:hover { transform: translateY(-4px) rotate(-.6deg); color: var(--ink); }
.card-n { position: absolute; top: 2px; left: 18px; font: 700 1.6rem/1 var(--hand); color: var(--sea); }
.card b { font-weight: 500; font-size: 1.15rem; line-height: 1.75rem; }
.card span:last-child { color: var(--muted); font-size: .94rem; line-height: 1.75rem; }

/* El estuche */
.case { position: relative; margin-top: 26px; background: var(--sea); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 6px); border-radius: 30px; padding: 30px 16px 16px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12), 0 26px 40px -26px rgba(10,60,60,.7); }
.case-zip { position: absolute; left: 26px; right: 26px; top: 11px; height: 10px; border-radius: 5px; background: repeating-linear-gradient(90deg, #dfe6e4 0 3px, #9fb3b0 3px 4px, transparent 4px 7px); }
.case-pull { position: absolute; right: 18%; top: -6px; width: 16px; height: 26px; border-radius: 5px 5px 8px 8px; background: linear-gradient(#f3f5f4, #a7b6b3); box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.case-in { list-style: none; margin: 0; padding: 18px 16px 10px; background-color: #fff; background-image: linear-gradient(rgba(21,146,143,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(21,146,143,.12) 1px, transparent 1px); background-size: 18px 18px; border-radius: 18px; display: grid; gap: 14px; }
.pen { display: grid; gap: 4px; }
.pen-body { position: relative; display: flex; align-items: center; height: 34px; margin: 0 34px 0 22px; padding-left: 14px; border-radius: 3px; background: var(--pc, var(--sea)); box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), inset 0 6px 0 rgba(255,255,255,.18); }
.pen-body::before { content: ""; position: absolute; left: -22px; top: 0; width: 22px; height: 100%; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, #f0a5a0 0 55%, #c9ced0 55% 60%, #e3e7e8 60% 66%, #c9ced0 66% 72%, #e3e7e8 72%); }
.pen-body::after { content: ""; position: absolute; right: -34px; top: 0; width: 34px; height: 100%; background: linear-gradient(90deg, #efd9b0 0 70%, #3b3f3e 70%); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.pen-t { font: 700 1.08rem/1 var(--hand); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pen-d { font-size: .9rem; color: var(--muted); padding-left: 22px; line-height: 1.45; }
.pen--c1 { --pc: #15928f; } .pen--c2 { --pc: #2f5f43; } .pen--c3 { --pc: #d9a63a; } .pen--c4 { --pc: #d4655a; } .pen--c5 { --pc: #3d6f9e; } .pen--c6 { --pc: #a88a55; }
.pen:nth-child(2) .pen-body { margin-right: 70px; } .pen:nth-child(4) .pen-body { margin-right: 54px; } .pen:nth-child(5) .pen-body { margin-right: 90px; }
.case-tag { position: absolute; right: 26px; bottom: -16px; background: var(--sun); color: var(--ink); font: 700 1rem/1 var(--hand); padding: 9px 16px; border-radius: 4px; text-decoration: none; transform: rotate(-3deg); box-shadow: 0 6px 12px -6px rgba(0,0,0,.4); }
.case-tag:hover { color: var(--ink); transform: rotate(0); }

/* Lotería: bloque tranquilo */
.lot { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 4vw, 52px); border: 1px solid #cfe7e4; border-top: 6px solid var(--sea); border-radius: 0 0 var(--r) var(--r); background: linear-gradient(180deg, #f3fbfa, #fff 40%); }
.lot-h p { color: var(--muted); }
.lot-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lot-list { list-style: none; margin: 0; padding: 0; }
.lot-list li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px dotted #9ccfcb; }
.lot-list b { font-weight: 500; }
.lot-list span { color: var(--muted); text-align: right; font-size: .95rem; }
.jr { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 10px; background: var(--green-l); font-size: .92rem; line-height: 1.55; }
.jr p { margin: 0; }
.jr-18 { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--margin); color: var(--margin); font-weight: 700; font-size: .95rem; background: #fff; }
.jr--lot { grid-column: 1 / -1; }
.jr--art { margin-top: 36px; }
.jr--foot { background: rgba(255,255,255,.45); margin-top: 34px; }

/* Mar */
.sea { height: clamp(120px, 18vw, 220px); overflow: hidden; }
.sea img { width: 100%; height: 100%; object-fit: cover; }

/* Paquetería */
.stamps { list-style: none; margin: 22px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stamps li { padding: 9px 16px; background: #fff; border: 2px dashed var(--sea); border-radius: 4px; font-weight: 500; font-size: .95rem; color: var(--sea-d); box-shadow: 3px 3px 0 var(--mares-2); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding: 20px 22px 20px 82px; background: var(--mares) var(--noise); border-radius: var(--r); }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 14px; font: 700 2.6rem/1 var(--hand); color: var(--sea); }
.steps b { display: block; font-weight: 500; font-size: 1.12rem; margin-bottom: 4px; }
.steps span { color: var(--muted); }

/* Opiniones */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); max-width: 980px; margin-left: 4%; }
.quote { position: relative; margin: 0; padding: 34px 28px 22px; background: #fffbea; box-shadow: 0 18px 30px -22px rgba(60,50,20,.6); transform: rotate(-1.2deg); }
.quote--b { transform: rotate(1.4deg); background: #effaf8; }
.quote::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(21,146,143,.35); }
.quote--b::before { background: rgba(232,184,74,.55); }
.quote blockquote { margin: 0; font: 400 1.28rem/1.5 var(--hand); color: var(--ink); }
.quote figcaption { margin-top: 10px; font-size: .9rem; font-weight: 500; color: var(--green); }
.quote figcaption::before { content: "— "; }

/* Visita */
.visit { background: var(--green); color: #fff; position: relative; padding: clamp(48px, 7vw, 84px) 0; }
.visit::before { content: ""; position: absolute; inset: 0 0 auto; height: 18px; background: repeating-linear-gradient(180deg, var(--green-d) 0 3px, transparent 3px 6px); }
.visit-in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.visit p { color: #dbe8df; margin: 0; }
.visit-act { display: flex; gap: 12px; flex-wrap: wrap; }

/* Notas (artículos) */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.note { display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 #e5dccb, 0 16px 30px -22px rgba(40,50,40,.5); border-left: 3px solid var(--margin); }
.note:hover { color: var(--ink); transform: translateY(-3px); }
.note-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.note-b { display: grid; gap: 8px; padding: 18px 20px 22px; }
.note time { font: 700 .98rem/1 var(--hand); color: var(--sea); }
.note strong { font-weight: 500; font-size: 1.14rem; line-height: 1.3; }
.note-b > span { color: var(--muted); font-size: .94rem; }
.empty { font-size: 1.1rem; color: var(--muted); padding: 40px 0 40px 6%; }
.empty .hand { font-size: 1.5rem; margin-right: 8px; }
.nav-links { display: flex; gap: 10px; justify-content: center; margin-top: 36px; }
.page-numbers { padding: 8px 14px; border-radius: 999px; background: #fff; text-decoration: none; }
.page-numbers.current { background: var(--green); color: #fff; }

/* Cabecera de páginas interiores */
.ph { padding: clamp(38px, 6vw, 72px) 0 clamp(36px, 5vw, 60px); background: var(--white); border-bottom: 1px solid #ebe3cf; }
.ph-in { display: grid; gap: 26px; }
.ph--img .ph-in { grid-template-columns: 1.1fr .9fr; grid-template-areas: "t w" "b w"; column-gap: clamp(28px, 5vw, 64px); row-gap: 18px; align-items: end; }
.ph--img .ph-t { grid-area: t; }
.ph--img .ph-t--b { grid-area: b; align-self: start; }
.ph-win { grid-area: w; position: relative; margin: 0; border: 12px solid var(--mares); outline: 1px solid var(--mares-2); border-radius: 4px; perspective: 1200px; aspect-ratio: 4 / 3; background: var(--sea-l); }
.ph-win img { width: 100%; height: 100%; object-fit: cover; }
.ph-win .shut { position: absolute; top: 0; height: 100%; width: 50%; }
.ph-win .shut--l { left: 0; transform-origin: left center; transform: rotateY(-72deg); }
.ph-win .shut--r { right: 0; transform-origin: right center; transform: rotateY(72deg); }
.crumb { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.crumb a { color: var(--muted); }
.ph .lead { margin: 18px 0 0; }
.ph--art .wrap { max-width: 900px; }
.meta { font: 700 1.02rem/1 var(--hand); color: var(--sea); margin-bottom: 14px; }
.h1--art { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.art-hero { margin-top: 32px; margin-bottom: 0; }
.art-hero img { width: 100%; border-radius: var(--r); max-height: 560px; object-fit: cover; }
.sec--art { padding-top: clamp(36px, 5vw, 60px); }

/* Texto */
.prose { max-width: 42em; }
.prose--narrow { max-width: 760px; }
.prose h2:not(.h2) { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.3rem; font-weight: 500; margin: 1.5em 0 .5em; letter-spacing: -.01em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--sea); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--sea); font-family: var(--hand); font-size: 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid #e5ddca; text-align: left; }
.prose th { background: var(--green-l); font-weight: 500; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 10px; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.prose img { border-radius: 10px; }
.art { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 5vw, 70px); align-items: start; }
.art-body h2 { scroll-margin-top: 100px; }
.side { position: sticky; top: 100px; display: grid; gap: 18px; }
.side-box { padding: 20px 22px; border-radius: var(--r); background: var(--mares) var(--noise); }
.side-box ol, .side-box ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: .95rem; }
.side-box--ruled { background-color: #fff; background-image: repeating-linear-gradient(180deg, transparent 0 27px, var(--rule) 27px 28px); border: 1px solid #e3ecef; }
.side-box--green { background: var(--green); color: #e4eee7; }
.side-box--green a:not(.btn) { color: #fff; }
.side-box--green .fh { color: #fff; }

/* Prepago */
.tickets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tickets li { position: relative; display: grid; gap: 6px; padding: 24px 24px 22px; background: #fff; border: 1px solid #d3e6e4; border-radius: 12px; -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.tickets b { font-weight: 500; font-size: 1.2rem; color: var(--sea-d); }
.tickets span { color: var(--muted); font-size: .95rem; }
.note-s { margin-top: 22px; color: var(--muted); }

/* Contacto */
.addr { display: grid; gap: 14px; }
.addr-b { background: #fff; border-radius: var(--r); padding: 18px 22px; box-shadow: 0 12px 24px -20px rgba(60,50,20,.6); }
.addr-b p:last-of-type { margin-bottom: 6px; }
.addr .big { font-size: 1.6rem; font-weight: 400; text-decoration: none; color: var(--green-d); }
.fh { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--green); margin-bottom: 8px; }
.pad { position: relative; padding: 34px clamp(20px, 3vw, 36px) 30px clamp(30px, 5vw, 56px); background-color: #fff; background-image: linear-gradient(90deg, transparent 22px, rgba(222,106,94,.6) 22px 24px, transparent 24px), repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px); border-radius: 4px; box-shadow: 0 26px 40px -28px rgba(60,50,20,.6); display: grid; gap: 14px; }
.pad-t { font-size: 1.6rem; margin: 0; transform: rotate(-1deg); }
.hp { position: absolute; left: -9999px; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1.5px solid #bcd9d6; background: #fff; font-size: .9rem; }
.chips input:checked + span { background: var(--sea); border-color: var(--sea); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.fld { display: grid; gap: 5px; }
.fld span { font-size: .9rem; font-weight: 500; }
.fld input, .fld textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid #d8d0bd; border-radius: 8px; background: rgba(255,255,255,.9); color: var(--ink); }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-l); }
.fld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.chk input { margin-top: 5px; accent-color: var(--green); }
.pad .btn { justify-self: start; }
.ok, .err { padding: 12px 16px; border-radius: 8px; margin: 0; }
.ok { background: var(--green-l); color: var(--green-d); }
.err { background: #fbe6e3; color: #8a2f25; }

/* 404 */
.e404 { text-align: center; }
.e404 .kick { justify-content: center; }
.e404 .lead { margin: 18px auto 26px; }

/* Pie: muro de marés */
.foot { position: relative; background: var(--mares-2) var(--noise); background-image: var(--noise), repeating-linear-gradient(180deg, transparent 0 88px, rgba(255,255,255,.3) 88px 90px); padding: 64px 0 28px; font-size: .95rem; }
.slats { position: absolute; inset: 0 0 auto; height: 22px; background: repeating-linear-gradient(180deg, var(--green) 0 4px, var(--green-d) 4px 6px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 12px; }
.foot-name { font-size: 1.35rem; font-weight: 400; line-height: 1.2; }
.foot-name em { font: 700 1.6rem/1 var(--hand); color: var(--sea-d); font-style: normal; }
.foot a { color: var(--green-d); }
.fl { display: grid; gap: 4px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(80,60,20,.25); font-size: .85rem; color: #5a4c30; }

/* Responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .nav a { padding: 8px 9px; font-size: .9rem; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: block; }
  .hero-in, .split, .lot, .art { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 2; }
  .side { position: static; }
  .notes { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .tickets { grid-template-columns: 1fr; }
  .ph--img .ph-in { grid-template-columns: 1fr; grid-template-areas: "t" "w" "b"; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hide-s { display: none; }
  .topline-in { gap: 14px; }
  .mast-in { min-height: 66px; gap: 12px; }
  .brand-t em { font-size: 1.3rem; }
  .brand-t b { font-size: .74rem; }
  .brand-ico { width: 30px; height: 38px; }
  .burger summary span { display: none; }
  .burger summary { padding: 12px 14px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .quotes { grid-template-columns: 1fr; margin-left: 0; }
  .notes { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .fld-2 { grid-template-columns: 1fr; }
  .win-frame { border-width: 9px; aspect-ratio: 4 / 3; }
  .win-sill { margin: -4px -12px 0; }
  .pen-body { margin-right: 30px !important; }
  .lot-list li { flex-direction: column; gap: 2px; }
  .lot-list span { text-align: left; }
  .ruled { background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px); }
  .case { padding: 28px 10px 12px; border-radius: 24px; }
  .case-in { padding: 16px 10px 8px; }
  .photo--tilt { transform: none; }
  .visit-act .btn { flex: 1; }
}
