/*
Theme Name: Refugio Naval
Theme URI: https://example.com/refugio-naval
Author: Refugio Naval
Description: Tema boutique costero para un hostal con reservas, habitaciones y experiencias.
Version: 1.0.0
Text Domain: refugio-naval
*/

:root {
  --navy: #071d2b;
  --deep: #0b2d3d;
  --sea: #147d83;
  --foam: #d9f0ee;
  --coral: #e88768;
  --sand: #f4efe7;
  --ink: #18313c;
  --muted: #64808a;
  --line: rgba(7, 29, 43, .12);
  --shadow: 0 22px 60px rgba(7, 29, 43, .14);
  --radius: 22px;
  --serif: Georgia, 'Times New Roman', serif;
  --display: 'Arial Narrow', Inter, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--sand); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.container { width: min(1180px, calc(100% - 48px)); margin: auto; }
.eyebrow { color: var(--coral); text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: .74rem; }
h1, h2, h3 { line-height: 1.03; margin: 0 0 18px; letter-spacing: -.04em; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(3.4rem, 8vw, 7rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 18px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--coral); color: white; font-weight: 800; border: 1px solid transparent; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; transform: translate3d(var(--mx, 0), var(--my, 0), 0); }
.button:hover { transform: translateY(-3px); background: #d87357; box-shadow: 0 12px 24px rgba(232,135,104,.3); }
.button--outline { background: transparent; color: white; border-color: rgba(255,255,255,.45); }
.button--outline:hover { background: white; color: var(--navy); }
.button--dark { background: var(--navy); margin-top: 20px; }
.text-link { color: var(--sea); font-weight: 800; font-size: .9rem; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link--light { color: var(--foam); }

.site-header { position: absolute; top: 0; z-index: 5; width: 100%; color: white; padding: 24px 0; transition: padding .35s ease, background .35s ease, backdrop-filter .35s ease; }
.site-header.is-scrolled { position: fixed; padding: 12px 0; background: rgba(7,29,43,.9); backdrop-filter: blur(16px); box-shadow: 0 12px 35px rgba(7,29,43,.16); }
.page .site-header, .single .site-header { background: var(--navy); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .83rem; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 1.2rem; }
.nav-links { display: flex; gap: 30px; font-size: .88rem; font-weight: 700; }
.nav-links a { opacity: .82; transition: opacity .2s ease; }
.nav-links a:hover { opacity: 1; }

.hero { min-height: 780px; display: grid; align-items: end; position: relative; overflow: hidden; color: white; background: linear-gradient(90deg, rgba(7,29,43,.88), rgba(7,29,43,.2)), url('https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=2200&q=85') center/cover; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 170px; background: linear-gradient(transparent, var(--sand)); z-index: 3; pointer-events: none; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, black, transparent 70%); animation: chartDrift 18s linear infinite; }
.hero-grid-lines { position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 78% 30%, rgba(232,135,104,.45), transparent 28%), radial-gradient(circle at 25% 80%, rgba(20,125,131,.35), transparent 35%); }
.hero-content { position: relative; z-index: 1; padding: 180px 0 120px; max-width: 760px; animation: rise .9s .15s both ease-out; }
.hero h1 { max-width: 780px; }
.hero p { max-width: 560px; color: rgba(255,255,255,.78); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.scroll-note { position: absolute; z-index: 2; bottom: 44px; right: 7%; color: rgba(255,255,255,.7); font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; writing-mode: vertical-rl; }
.compass-badge { position: absolute; right: -260px; top: 75px; width: 118px; height: 118px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; transform: rotate(-12deg); animation: compassFloat 5s ease-in-out infinite; }
.compass-badge::before, .compass-badge::after { content: ''; position: absolute; background: rgba(255,255,255,.35); }
.compass-badge::before { width: 1px; height: 140%; }
.compass-badge::after { height: 1px; width: 140%; }
.compass-badge span, .compass-badge small { position: relative; z-index: 1; }
.compass-badge span { font-size: 1.5rem; color: var(--coral); }
.compass-badge small { position: absolute; bottom: -34px; color: rgba(255,255,255,.7); font: 700 .55rem/1.3 var(--display); letter-spacing: .12em; text-align: center; }
.hero-signature { display: flex; align-items: center; gap: 12px; margin-top: 42px; color: rgba(255,255,255,.62); font: 700 .66rem var(--display); letter-spacing: .12em; text-transform: uppercase; }
.signature-line { width: 62px; height: 1px; background: var(--coral); }
.wave { position: absolute; z-index: 2; left: -5%; width: 110%; height: 95px; bottom: 45px; opacity: .42; background: radial-gradient(ellipse at 50% 100%, transparent 65%, rgba(217,240,238,.75) 66% 68%, transparent 69%) 0 0/220px 100px repeat-x; animation: waveSlide 13s linear infinite; }
.wave--two { bottom: 18px; opacity: .22; transform: scaleX(-1); animation-duration: 19s; }
.tide-banner { background: var(--navy); color: rgba(255,255,255,.82); overflow: hidden; }
.tide-inner { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 22px; font: 800 .7rem var(--display); letter-spacing: .17em; text-transform: uppercase; white-space: nowrap; }
.tide-inner span:first-child, .tide-inner span:last-child { color: var(--coral); font-size: 1rem; }
.tide-inner i { width: 5px; height: 5px; display: block; background: var(--sea); border-radius: 50%; box-shadow: 0 0 0 6px rgba(20,125,131,.15); }

.intro { padding: 120px 0 90px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: end; }
.intro, .rooms, .experience, .booking { position: relative; }
.intro::before, .experience::before { content: 'RN'; position: absolute; right: 4%; top: 46px; color: rgba(7,29,43,.045); font: 900 9rem/1 var(--display); letter-spacing: -.12em; pointer-events: none; }
.intro-copy { max-width: 620px; }
.intro-copy p { font-size: 1.12rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.stat strong { display: block; color: var(--navy); font-size: 2.2rem; font-family: var(--serif); font-weight: 500; }
.stat span { color: var(--muted); font-size: .85rem; }

.rooms { padding: 80px 0 120px; background: var(--foam); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-head p { max-width: 360px; }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.room-card { position: relative; overflow: hidden; min-height: 420px; border-radius: var(--radius); background: var(--navy); color: white; box-shadow: var(--shadow); }
.room-card img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; opacity: .84; transition: transform .6s ease; }
.room-card:hover img { transform: scale(1.06); }
.room-card { transition: transform .35s ease, box-shadow .35s ease; }
.room-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(7,29,43,.24); }
.room-card::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(7,29,43,.92)); }
.room-info { position: absolute; z-index: 1; inset: auto 24px 22px; }
.room-tag { display: inline-block; padding: 5px 9px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: rgba(255,255,255,.82); font: 800 .6rem var(--display); letter-spacing: .12em; text-transform: uppercase; }
.room-info p { color: rgba(255,255,255,.73); font-size: .9rem; }
.room-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.2); padding-top: 12px; font-size: .8rem; }
.room-meta strong { color: white; }

.experience { padding: 120px 0; }
.experience-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.photo-stack { min-height: 560px; position: relative; }
.photo-main, .photo-small { position: absolute; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.photo-main { width: 78%; height: 520px; left: 0; top: 0; }
.photo-small { width: 43%; height: 240px; right: 0; bottom: 0; border: 10px solid var(--sand); }
.photo-stamp { position: absolute; z-index: 2; left: -18px; top: 40px; padding: 10px 12px; color: var(--coral); border: 1px solid var(--coral); background: rgba(244,239,231,.86); font: 900 .58rem/1.25 var(--display); letter-spacing: .16em; transform: rotate(-8deg); }
.feature-list { display: grid; gap: 22px; margin-top: 32px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.feature-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--foam); color: var(--sea); font-size: 1.2rem; }
.feature h3 { margin: 0 0 4px; font-size: 1rem; letter-spacing: -.01em; }
.feature p { font-size: .9rem; margin: 0; }
.feature { transition: transform .3s ease; }
.feature:hover { transform: translateX(7px); }

.route-section { position: relative; overflow: hidden; padding: 130px 0; color: white; background: linear-gradient(115deg, rgba(7,29,43,.97), rgba(11,45,61,.91)), url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1800&q=85') center/cover; }
.route-section::before { content: ''; position: absolute; width: 470px; height: 470px; right: -80px; top: -150px; border-radius: 50%; border: 1px solid rgba(217,240,238,.18); box-shadow: 0 0 0 28px rgba(217,240,238,.03), 0 0 0 58px rgba(217,240,238,.025); animation: slowOrbit 18s linear infinite; }
.route-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 100px; }
.route-copy { max-width: 560px; }
.route-copy h2 { max-width: 500px; }
.route-copy p { max-width: 500px; color: rgba(255,255,255,.68); font-size: 1.05rem; }
.route-map { min-height: 380px; position: relative; border: 1px solid rgba(217,240,238,.22); border-radius: 50%; background: radial-gradient(circle at center, rgba(20,125,131,.2), transparent 56%); animation: breathe 6s ease-in-out infinite; }
.route-map::before, .route-map::after { content: ''; position: absolute; inset: 14%; border: 1px dashed rgba(217,240,238,.18); border-radius: 50%; transform: rotate(35deg); }
.route-map::after { inset: 25%; transform: rotate(-30deg); }
.map-ring { position: absolute; inset: 8%; border: 1px solid rgba(232,135,104,.32); border-radius: 50%; }
.map-ring--one { animation: ringPulse 5s ease-in-out infinite; }
.map-ring--two { inset: 33%; border-color: rgba(217,240,238,.28); animation: ringPulse 5s 1s ease-in-out infinite; }
.map-pin { position: absolute; z-index: 2; left: 48%; top: 45%; color: var(--coral); font-size: 2rem; animation: pinFloat 3s ease-in-out infinite; }
.map-route { position: absolute; width: 58%; height: 2px; left: 16%; top: 54%; background: repeating-linear-gradient(90deg, var(--coral) 0 8px, transparent 8px 14px); transform: rotate(-29deg); transform-origin: left center; opacity: .8; }
.map-label { position: absolute; color: rgba(255,255,255,.72); font: 800 .62rem var(--display); letter-spacing: .16em; }
.map-label--top { top: 19%; left: 18%; }
.map-label--bottom { right: 10%; bottom: 23%; }
.quote-section { padding: 120px 0; background: var(--sand); }
.quote-layout { max-width: 900px; position: relative; }
.quote-mark { color: var(--coral); font: 6rem/.65 var(--serif); }
blockquote { max-width: 800px; margin: 0; color: var(--navy); font: 500 clamp(2rem, 4vw, 3.65rem)/1.08 var(--serif); letter-spacing: -.035em; }
.quote-author { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.quote-author span { width: 58px; height: 1px; background: var(--coral); }
.quote-author p { margin: 0; font-size: .8rem; color: var(--ink); }
.quote-author small { color: var(--muted); }
.gallery-section { padding: 120px 0 140px; background: white; }
.gallery-section .section-head { align-items: end; }
.gallery-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; grid-auto-rows: 250px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; margin: 0; border-radius: 16px; background: var(--navy); }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s ease; }
.gallery-item:hover img { opacity: 1; transform: scale(1.07); }
.gallery-item::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(7,29,43,.75)); pointer-events: none; }
.gallery-item figcaption { position: absolute; z-index: 1; left: 18px; bottom: 15px; color: rgba(255,255,255,.85); font: 800 .62rem var(--display); letter-spacing: .14em; text-transform: uppercase; }

.booking { color: white; background: var(--deep); padding: 100px 0; position: relative; overflow: hidden; }
.booking::before { content: ''; position: absolute; width: 500px; height: 500px; border: 1px solid rgba(217,240,238,.14); border-radius: 50%; right: -150px; top: -210px; box-shadow: 0 0 0 35px rgba(217,240,238,.04), 0 0 0 70px rgba(217,240,238,.03); }
.booking-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.booking h2 { max-width: 600px; }
.booking p { color: rgba(255,255,255,.67); max-width: 520px; }
.booking-contact { text-align: right; white-space: nowrap; }
.booking-contact small { color: rgba(255,255,255,.55); display: block; margin-bottom: 4px; }
.booking-contact a { font-size: 1.35rem; font-family: var(--serif); }

.page-shell { padding: 180px 0 120px; min-height: 720px; background: var(--sand); }
.page-shell--dark { color: white; background: var(--deep); }
.page-content { max-width: 1180px; }
.page-content > h1 { max-width: 820px; margin-top: 16px; }
.page-content h1, .page-content h2, .page-content h3, .page-content strong { color: var(--ink); }
.page-shell--dark .page-content h1, .page-shell--dark .page-content h2, .page-shell--dark .page-content h3 { color: white; }
.page-content p, .page-content li { color: var(--muted); }
.lead { max-width: 680px; font-size: 1.18rem; margin: 0 0 55px; }
.page-shell--dark .lead, .page-shell--dark p { color: rgba(255,255,255,.7); }
.room-grid--page { margin-top: 35px; }
.destination-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; margin-top: 40px; }
.destination-card { min-height: 320px; border-radius: var(--radius); overflow: hidden; position: relative; color: white; background: var(--navy); }
.destination-card--large { grid-row: span 2; min-height: 660px; }
.destination-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .6s ease; }
.destination-card:hover img { transform: scale(1.05); }
.destination-card::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(7,29,43,.95)); }
.destination-card > div { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; }
.destination-card h3 { margin-bottom: 8px; }
.destination-card p { color: rgba(255,255,255,.72); margin: 0; }
.natales-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: start; }
.wide-photo { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 50px; }
.natales-layout h2 { margin-top: 20px; }
.guide-list { display: grid; gap: 20px; }
.guide-list > div { border-top: 1px solid var(--line); padding-top: 16px; }
.guide-list strong { font-size: 1.1rem; }
.guide-list p { margin: 4px 0 0; }
.info-card, .contact-card { background: white; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.info-card h3, .contact-card h3 { margin-top: 10px; }
.info-card p { margin-bottom: 25px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; }
.contact-card p { color: var(--muted); margin-top: 25px; }
.page-shell--dark .contact-card a { color: var(--sea); font-weight: 800; }

.footer { padding: 35px 0; background: var(--navy); color: white; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: .8rem; }
.footer p { margin: 0; color: rgba(255,255,255,.55); }
.footer-links { display: flex; gap: 20px; color: rgba(255,255,255,.75); }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes waveSlide { from { background-position-x: 0; } to { background-position-x: 220px; } }
@keyframes compassFloat { 0%,100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-10px); } }
@keyframes chartDrift { from { transform: translateX(0); } to { transform: translateX(80px); } }
@keyframes slowOrbit { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { transform: scale(.98); opacity: .75; } 50% { transform: scale(1.02); opacity: 1; } }
@keyframes ringPulse { 0%,100% { transform: scale(.92); opacity: .45; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes pinFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-content[data-reveal], [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.25,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (max-width: 820px) {
  .container { width: min(100% - 32px, 680px); }
  .nav-links { display: none; }
  .hero { min-height: 680px; }
  .hero-content { padding: 150px 0 100px; }
  .compass-badge { right: 0; top: 60px; transform: scale(.75); }
  .tide-inner { overflow: hidden; justify-content: flex-start; font-size: .6rem; }
  .tide-inner span:nth-of-type(2), .tide-inner i:nth-of-type(2) { display: none; }
  .intro, .experience-grid { grid-template-columns: 1fr; gap: 44px; }
  .intro { padding: 80px 0 60px; }
  .room-grid { grid-template-columns: 1fr; }
  .room-card { min-height: 360px; }
  .room-card img { min-height: 360px; }
  .photo-stack { min-height: 470px; }
  .photo-main { height: 430px; }
  .booking-inner, .section-head, .footer-inner { align-items: flex-start; flex-direction: column; }
  .booking-contact { text-align: left; }
  .destination-grid, .natales-layout, .contact-grid { grid-template-columns: 1fr; }
  .destination-card--large { min-height: 420px; grid-row: auto; }
  .destination-card { min-height: 300px; }
  .page-shell { padding: 140px 0 80px; }
  .wide-photo { height: 300px; }
  .route-grid { grid-template-columns: 1fr; gap: 50px; }
  .route-map { min-height: 300px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .gallery-item--tall { grid-row: span 2; }
  .gallery-item--wide { grid-column: span 2; }
}
