/* Casa Rural Los Almendros — natural y acogedor: arena, oliva y terracota. Lora + DM Sans */
:root { --sand: #F5EFE3; --paper: #FFFBF2; --olive: #7C8B4A; --olive-d: #5C6A33; --terra: #B4552F; --ink: #2B2A1F; --mu: #6D6A58; --line: #E4DAC2; --clay: #EADFC6;
  --f-d: 'Lora', Georgia, serif; --f-b: 'DM Sans', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.65 var(--f-b); -webkit-font-smoothing: antialiased; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-d); margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.12; }
em { font-style: italic; color: var(--terra); }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; font: 700 .76rem var(--f-b); letter-spacing: .16em; text-transform: uppercase; color: var(--olive-d); }
.lead { color: var(--mu); font-size: 1.12rem; max-width: 32em; margin: 18px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 999px; border: 2px solid transparent; font: 700 .94rem var(--f-b); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.btn-main { background: var(--terra); color: #fff; }
.btn-main:hover:not(:disabled) { background: #9B4524; transform: translateY(-2px); }
.btn-main:disabled { opacity: .45; cursor: not-allowed; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--sand); }
.btn-soft { background: var(--clay); color: var(--olive-d); }
.btn-soft:hover { background: var(--olive); color: #fff; }
.btn-sm { padding: 9px 20px; } .btn-block { width: 100%; }

.top { position: sticky; top: 0; z-index: 40; background: rgba(245, 239, 227, .93); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--olive-d); }
.logo svg { width: 38px; height: 38px; }
.logo span { display: grid; font: 600 1.3rem/1.05 var(--f-d); color: var(--ink); }
.logo small { font: 500 .66rem var(--f-b); letter-spacing: .12em; text-transform: uppercase; color: var(--mu); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .94rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--mu); } .nav a:not(.btn):hover { color: var(--terra); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger i { width: 20px; height: 2px; background: var(--ink); }

.hero { position: relative; overflow: hidden; padding: clamp(80px, 13vw, 170px) 0 clamp(120px, 15vw, 210px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; } .hero-bg svg { width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); max-width: 11em; }
.hero .lead { color: #4F4B36; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.sec { padding: clamp(52px, 7vw, 96px) 0; }
.sec h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.soft { background: var(--clay); }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.room { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: grid; transition: transform .25s, box-shadow .25s; }
.room:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(75, 60, 20, .5); }
.room-art { position: relative; } .room-art svg { width: 100%; height: auto; }
.pax { position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 251, 242, .92); font: 700 .78rem var(--f-b); }
.room-body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.room h3 { font-size: 1.4rem; } .room p { margin: 0; color: var(--mu); font-size: .95rem; }
.am { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.am li { padding: 3px 11px; border-radius: 999px; background: var(--clay); font-size: .78rem; color: var(--olive-d); }
.room-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; color: var(--mu); font-size: .9rem; }
.room-foot b { font: 600 1.45rem var(--f-d); color: var(--ink); }

.resv { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0; font-size: .86rem; color: var(--mu); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--line); }
.l-free { background: #fff; } .l-busy { background: repeating-linear-gradient(45deg, #E8DEC6 0 4px, #F5EFE3 4px 8px); } .l-sel { background: var(--olive); border-color: var(--olive); }
.f { display: grid; gap: 6px; font-size: .84rem; color: var(--mu); font-weight: 500; }
.f select, .f input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 400 1rem var(--f-b); }
.f select:focus, .f input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(124, 139, 74, .2); }
.guests { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--sand); font-size: 1.2rem; cursor: pointer; }
.stepper button:hover { border-color: var(--olive); color: var(--olive-d); }
.stepper output { font: 600 1.4rem var(--f-d); min-width: 1.5ch; text-align: center; }
.cal-card { padding: clamp(18px, 3vw, 30px); background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 30px 50px -34px rgba(75, 60, 20, .5); }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-nav b { font: 600 1.3rem var(--f-d); } .cal-nav b::first-letter { text-transform: uppercase; }
.cal-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; }
.cal-nav button:hover:not(:disabled) { border-color: var(--olive); } .cal-nav button:disabled { opacity: .3; cursor: not-allowed; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dw { text-align: center; font: 700 .72rem var(--f-b); text-transform: uppercase; letter-spacing: .08em; color: var(--mu); padding: 6px 0; }
.cal button { aspect-ratio: 1; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font: 500 .95rem var(--f-b); cursor: pointer; position: relative; transition: background .15s; }
.cal button:hover:not(:disabled) { background: var(--clay); }
.cal button:disabled { cursor: not-allowed; color: #B9B196; background: transparent; }
.cal button.busy { background: repeating-linear-gradient(45deg, #E8DEC6 0 4px, #F5EFE3 4px 8px); text-decoration: line-through; }
.cal button.mid { background: rgba(124, 139, 74, .22); border-radius: 0; }
.cal button.sel { background: var(--olive); color: #fff; }
.cal .pad { visibility: hidden; }
.sum { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 12px; }
.sum-hint { margin: 0; color: var(--mu); font-size: .95rem; }
.sum dl { margin: 0; display: grid; gap: 8px; } .sum dl[hidden] { display: none; }
.sum dl > div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--mu); } .sum dd { margin: 0; font-weight: 700; text-align: right; }
.sum .tot { padding-top: 10px; border-top: 1px solid var(--line); } .sum .tot dd { font: 600 1.6rem var(--f-d); color: var(--terra); }
.sum-warn { margin: 0; padding: 8px 12px; border-radius: 10px; background: #F8E3D8; color: #8E3C1D; font-size: .88rem; } .sum-warn[hidden] { display: none; }
.clear { background: none; border: 0; color: var(--mu); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; justify-self: center; } .clear[hidden] { display: none; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.plans article { padding: 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.time { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; background: var(--olive); color: #fff; font: 700 .76rem var(--f-b); }
.plans h3 { font-size: 1.2rem; margin-bottom: 6px; } .plans p { margin: 0; color: var(--mu); font-size: .93rem; }
.cinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cl { list-style: none; padding: 0; margin: 0; }
.cl li { display: grid; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cl span { color: var(--mu); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; } .cl a { color: var(--terra); font-weight: 700; }
.foot { padding: 26px 0 90px; color: var(--mu); font-size: .85rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(43, 42, 31, .6); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(440px, 100%); padding: 30px; border-radius: 24px; background: var(--paper); display: grid; gap: 14px; }
.modal-box h3 { font-size: 1.6rem; } .sumline { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--clay); font-size: .93rem; }
.mbtns { display: flex; gap: 10px; justify-content: flex-end; } .hint { margin: 0; color: var(--mu); font-size: .83rem; }
.err { margin: 0; color: #B3402E; font-size: .9rem; } .err[hidden] { display: none; }
.done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 30px; border-radius: 24px; background: var(--paper); text-align: center; } .done[hidden] { display: none; }
.done p { margin: 0; } .ok { width: 58px; height: 58px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; font-size: 1.8rem; }

@media (max-width: 960px) {
  .burger { display: flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; background: var(--sand); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; } .nav a { padding: 12px 0; }
  .rooms, .plans { grid-template-columns: 1fr 1fr; }
  .resv, .cinfo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) { .rooms, .plans { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
