/* Hotel Italia Cuenca — shared styles */
:root {
  --teal: #A3C4C5; --teal-d: #8ab2b3; --teal-l: #bdd4d5;
  --terra: #c97b5a; --terra-d: #a55f43;
  --ink: #1a1a1a; --txt: #333; --mut: #666;
  --bg: #fff; --cream: #f7f4ef; --line: rgba(0,0,0,.08);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --r: 14px; --r-lg: 22px;
  --shadow: 0 10px 40px rgba(0,0,0,.08);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--txt); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
h1 { font-size: clamp(2.8rem, 9vw, 7rem); }
h2 { font-size: clamp(2rem, 5.5vw, 4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { line-height: 1.65; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-d); font-weight: 600; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.sec-head h2 { margin-top: .6rem; }
.sec-head p { color: var(--mut); margin-top: .8rem; }
section { padding: 5rem 0; }
@media (min-width: 880px) { section { padding: 7rem 0; } }

/* Cream + grain */
.cream-bg { background: var(--cream); position: relative; isolation: isolate; }
.cream-bg::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 160px 160px; opacity: .5; pointer-events: none; mix-blend-mode: multiply; z-index: 0; }
.cream-bg > * { position: relative; z-index: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .9rem; background: var(--teal); color: #fff; border: 0; cursor: pointer; transition: .2s; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--teal-d); transform: translateY(-1px); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.ghost { background: transparent; border: 1px solid currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.btn.terra { background: var(--terra); }
.btn.terra:hover { background: var(--terra-d); }

/* Nav */
header.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; backdrop-filter: blur(14px); background: rgba(255,255,255,0); transition: .3s; color: #fff; }
header.nav.scrolled, header.nav.solid { background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.brand img { height: 36px; width: 36px; object-fit: contain; }
header.nav:not(.scrolled):not(.solid) .brand-name { color: #fff; }
nav.links { display: none; gap: 1.6rem; font-size: .9rem; font-weight: 500; }
@media (min-width: 880px) { nav.links { display: flex; } }
nav.links a { opacity: .85; transition: opacity .15s; }
nav.links a:hover, nav.links a.active { opacity: 1; }
.nav-r { display: flex; align-items: center; gap: .6rem; }
.lang-btn { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: .3rem .65rem; font: inherit; font-size: .8rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: .15s; }
.lang-btn:hover { opacity: .8; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 580px; color: #fff; overflow: hidden; }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.65) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 1.25rem 5rem; max-width: 1200px; margin: 0 auto; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p.lede { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 44ch; margin-top: 1rem; opacity: .92; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* Page hero (non-video) */
.page-hero { position: relative; height: 55svh; min-height: 380px; color: #fff; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.65) 100%); z-index: 1; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 1.25rem 3.5rem; max-width: 1200px; margin: 0 auto; }
.page-hero-content h1 { color: #fff; }
.page-hero-content p { color: rgba(255,255,255,.88); margin-top: .6rem; font-size: 1.05rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .82rem; opacity: .75; margin-bottom: .8rem; flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; color: inherit; }
.breadcrumb span { opacity: .6; }

/* Marquee */
.trust { background: var(--ink); color: #bbb; padding: .9rem 0; overflow: hidden; }
.marquee { display: flex; gap: 3rem; animation: marq 38s linear infinite; width: max-content; white-space: nowrap; font-size: .85rem; letter-spacing: .04em; }
.marquee span { display: inline-flex; align-items: center; gap: .7rem; }
.marquee i { font-style: normal; color: var(--terra); font-size: .6rem; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split.reverse > :first-child { order: 2; } }
.split img { border-radius: var(--r-lg); aspect-ratio: 5/4; object-fit: cover; box-shadow: var(--shadow); }
.split-text h2 { margin-bottom: .7rem; }
.split-text p { color: var(--mut); margin-bottom: 1.4rem; }

/* Bento grid */
.bento { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 880px) { .bento { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 260px); gap: 1rem; } .bento .b-lg { grid-row: 1/3; } }
.b { position: relative; border-radius: var(--r); overflow: hidden; min-height: 200px; }
.b img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.b:hover img { transform: scale(1.05); }
.b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.7)); }
.b .lbl { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; font-family: var(--serif); font-size: 1.1rem; color: #fff; }

/* Rooms grid */
.rooms-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 880px) { .rooms-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 1.2rem; } .rooms-grid .r-1 { grid-column: span 4; grid-row: span 2; } .rooms-grid .r-2 { grid-column: span 2; grid-row: span 1; } .rooms-grid .r-3 { grid-column: span 2; grid-row: span 1; } .rooms-grid .r-4 { grid-column: span 3; grid-row: span 1; } .rooms-grid .r-5 { grid-column: span 3; grid-row: span 1; } }
.room { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 4/5; color: #fff; transition: transform .3s ease; display: block; }
@media (min-width: 880px) { .room { aspect-ratio: auto; height: 100%; } }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.room:hover img { transform: scale(1.04); }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.78) 100%); }
.room .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; z-index: 2; }
.room .tag { display: inline-block; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; background: var(--terra); color: #fff; padding: .3rem .65rem; border-radius: 999px; margin-bottom: .7rem; }
.room h3 { color: #fff; font-size: clamp(1.2rem, 2vw, 1.7rem); }
.room p { font-size: .88rem; opacity: .88; margin-top: .25rem; }
.room .more { margin-top: .75rem; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }

/* Room page full layout */
.room-full { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; margin-bottom: 5rem; padding-bottom: 5rem; border-bottom: 1px solid var(--line); }
.room-full:last-child { border-bottom: none; margin-bottom: 0; }
@media (min-width: 880px) { .room-full { grid-template-columns: 1fr 1fr; gap: 5rem; } .room-full.flip > :first-child { order: 2; } }
.room-gallery { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.room-gallery img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.room-info h3 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .5rem; }
.room-info .price { font-size: 1.5rem; font-family: var(--serif); color: var(--terra-d); margin: .8rem 0 1.2rem; }
.room-info p { color: var(--mut); margin-bottom: 1.2rem; }
.room-amenities { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.amenity { font-size: .82rem; background: var(--cream); border: 1px solid var(--line); padding: .3rem .75rem; border-radius: 999px; color: var(--txt); }

/* Testimonials */
.q-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 880px) { .q-grid { grid-template-columns: repeat(3, 1fr); } }
.quote { background: #fff; border-radius: var(--r); padding: 1.8rem; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.quote p { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); line-height: 1.5; }
.quote footer { margin-top: 1rem; font-size: .85rem; color: var(--mut); }
.stars { color: var(--teal-d); letter-spacing: 2px; margin-bottom: .6rem; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 0; cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; font-weight: 300; color: var(--teal-d); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .ans { padding-bottom: 1.3rem; color: var(--mut); font-size: .95rem; line-height: 1.65; }

/* Menu */
.menu-section { margin-bottom: 4rem; }
.menu-section h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 2px solid var(--line); }
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 680px) { .menu-grid { grid-template-columns: 1fr 1fr; gap: 0 3rem; } }
.menu-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: none; }
.menu-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .3rem; }
.menu-item-head strong { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); font-weight: 700; }
.menu-item-head .price { font-family: var(--serif); font-size: 1.1rem; color: var(--terra-d); white-space: nowrap; flex-shrink: 0; }
.menu-item p { font-size: .88rem; color: var(--mut); line-height: 1.5; }
.menu-badge { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5a9a5a; margin-left: .4rem; vertical-align: middle; }
.drinks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 2rem; }
@media (min-width: 680px) { .drinks-grid { grid-template-columns: repeat(4, 1fr); } }
.drink-item { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.drink-item strong { font-weight: 500; }
.drink-item .price { color: var(--terra-d); font-weight: 600; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { border-radius: var(--r-lg); overflow: hidden; background: var(--cream); transition: transform .3s; display: block; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.blog-card-body { padding: 1.4rem; }
.blog-card-body .eyebrow { margin-bottom: .5rem; display: block; }
.blog-card-body h3 { font-size: 1.2rem; margin-bottom: .6rem; line-height: 1.25; }
.blog-card-body p { font-size: .9rem; color: var(--mut); }
.blog-card-body .read { margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--teal-d); }

/* Article */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.5rem 0 .8rem; }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.article-body p { margin-bottom: 1.2rem; color: var(--txt); font-size: 1rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.4rem 1.5rem; }
.article-body li { margin-bottom: .5rem; font-size: 1rem; color: var(--txt); }
.article-body a { color: var(--teal-d); text-decoration: underline; }
.article-cta-box { background: var(--cream); border-radius: var(--r); padding: 1.6rem 2rem; margin: 2.5rem 0; border-left: 4px solid var(--teal); }
.article-cta-box p { margin: 0 0 1rem; }

/* CTA band */
.band { background: var(--teal); color: #fff; text-align: center; padding: 5rem 0; }
.band h2 { color: #fff; }
.band p { margin: .8rem auto 1.8rem; max-width: 46ch; opacity: .95; }
.band-btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.band .btn { background: var(--ink); }
.band .btn:hover { background: #000; }
.band .btn.ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }

/* Stat moment */
.stat { padding: 7rem 0; text-align: center; }
.stat h2 { font-size: clamp(2.4rem, 7vw, 5.5rem); max-width: 18ch; margin: 0 auto; }
.stat h2 em { font-style: normal; color: var(--terra-d); }
.stat p { color: var(--mut); margin-top: 1.2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 5rem; } }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-detail .ico { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.contact-detail p { font-size: .95rem; }
.contact-detail a { color: var(--teal-d); }
.contact-form { background: var(--cream); border-radius: var(--r-lg); padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { border: 1.5px solid var(--line); border-radius: var(--r); padding: .75rem 1rem; font: inherit; font-size: .95rem; background: #fff; color: var(--ink); transition: border-color .15s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-d); }
.field textarea { resize: vertical; min-height: 120px; }

/* Why cards */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 880px) { .why-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.why-card { background: #fff; border-radius: var(--r); padding: 1.6rem; }
.why-card .ico { font-size: 1.6rem; margin-bottom: .6rem; }
.why-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.why-card p { font-size: .88rem; color: var(--mut); }

/* Mobile sticky bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: .7rem .9rem .9rem; display: flex; gap: .6rem; align-items: center; transform: translateY(110%); transition: transform .35s ease; }
.mobile-bar.show { transform: translateY(0); }
.mobile-bar .info { flex: 1; font-size: .78rem; line-height: 1.2; }
.mobile-bar .info strong { display: block; font-size: .92rem; color: var(--ink); }
.mobile-bar .btn { padding: .75rem 1.1rem; font-size: .88rem; }
@media (min-width: 880px) { .mobile-bar { display: none; } }
@media (max-width: 879px) { body.has-bar { padding-bottom: 72px; } }

/* WhatsApp float */
.wa { position: fixed; right: 1rem; bottom: 5.5rem; z-index: 55; width: 52px; height: 52px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(37,211,102,.4); transition: transform .2s; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 26px; height: 26px; fill: #fff; }
@media (min-width: 880px) { .wa { bottom: 1.5rem; right: 1.5rem; } }

/* Footer */
footer.f { background: #0d0d0d; color: #bbb; padding: 4rem 0 2rem; font-size: .9rem; }
.f-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 700px) { .f-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.f h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.f a { display: block; padding: .25rem 0; color: #bbb; transition: color .15s; }
.f a:hover { color: #fff; }
.f .brand-name { color: #fff; font-family: var(--serif); font-size: 1.2rem; margin-bottom: .7rem; display: block; }
.f address { font-style: normal; line-height: 1.7; }
.f .legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #222; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: #666; font-size: .82rem; }

/* Scroll reveals */
@supports (animation-timeline: view()) {
  .reveal { opacity: 0; transform: translateY(24px); animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { *, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; } }
