/*
Theme Name: Aak Home
Theme URI: https://aakhome.com
Author: Aak Home
Description: Tema bilingüe, ligero y responsivo para Aak Home y sus servicios de hospedaje, cohosting y property management.
Version: 1.0.0
Text Domain: aak-home
*/

:root {
  --navy: #052a42;
  --navy-deep: #031d2e;
  --teal: #11a8a4;
  --teal-dark: #0b817e;
  --gold: #f4c64e;
  --sand: #f7f2e8;
  --cream: #fffdf8;
  --ink: #17313f;
  --muted: #667984;
  --white: #fff;
  --shadow: 0 18px 55px rgba(5,42,66,.13);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Drugs, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-soft { background: var(--sand); }
.eyebrow { margin: 0 0 12px; color: var(--teal-dark); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--navy); font-family: Santor, Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { font-size: clamp(2.9rem, 6.6vw, 6.2rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4.3vw, 3.7rem); letter-spacing: -.035em; }
h3 { font-size: 1.55rem; }
p { margin-top: 0; }
.lead { max-width: 700px; color: var(--muted); font-size: 1.08rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-head h2 { max-width: 700px; margin-bottom: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: #ffd86f; }
.btn-outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-teal { background: var(--teal); color: var(--white); }

.site-header { position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; background: linear-gradient(to bottom, rgba(3,29,46,.85), transparent); transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(3,29,46,.97); box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--white); }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-name { font-family: Santor, Georgia, serif; font-size: 1.65rem; letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 25px; color: rgba(255,255,255,.92); font-size: .92rem; font-weight: 700; }
.nav a:hover { color: var(--gold); }
.lang-switch { display: flex; padding: 4px; background: rgba(255,255,255,.14); border-radius: 999px; }
.lang-switch button { padding: 5px 9px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.74); font-size: .75rem; font-weight: 900; }
.lang-switch button.active { background: var(--white); color: var(--navy); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: white; font-size: 1.25rem; }

.hero { position: relative; min-height: 790px; display: grid; align-items: end; overflow: hidden; color: var(--white); background: var(--navy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,29,46,.88) 0%, rgba(3,29,46,.5) 48%, rgba(3,29,46,.18) 100%), linear-gradient(0deg, rgba(3,29,46,.65), transparent 55%); }
.hero-content { position: relative; z-index: 2; padding: 170px 0 155px; }
.hero-content h1 { max-width: 820px; margin-bottom: 20px; color: var(--white); }
.hero-content h1 span { color: var(--gold); }
.hero-copy { max-width: 640px; margin-bottom: 30px; font-size: 1.15rem; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badge { position: absolute; z-index: 3; right: max(20px, calc((100vw - 1180px)/2)); bottom: 38px; display: flex; align-items: center; gap: 13px; padding: 14px 18px; background: rgba(255,255,255,.94); color: var(--navy); border-radius: 16px; box-shadow: var(--shadow); }
.hero-badge strong { display: block; font-size: 1.15rem; }
.hero-badge small { color: var(--muted); }
.stars { color: #e7a815; letter-spacing: .08em; }

.booking-bar { position: relative; z-index: 4; width: min(1060px, calc(100% - 40px)); margin: -70px auto 0; padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: end; gap: 12px; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); }
.field label { display: block; margin: 0 0 6px 4px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #d9e2e5; border-radius: 12px; background: #fff; color: var(--ink); }

.intro-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 75px; align-items: center; }
.image-stack { position: relative; padding: 0 55px 55px 0; }
.image-stack img:first-child { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.image-stack img:last-child { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border: 8px solid var(--cream); border-radius: 22px; box-shadow: var(--shadow); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.fact { padding: 18px 12px; background: var(--sand); border-radius: 15px; text-align: center; }
.fact strong { display: block; color: var(--navy); font-family: Santor, Georgia, serif; font-size: 1.45rem; }
.fact span { color: var(--muted); font-size: .8rem; }

.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.amenity { padding: 25px; background: var(--white); border: 1px solid rgba(5,42,66,.08); border-radius: 18px; box-shadow: 0 8px 25px rgba(5,42,66,.05); }
.amenity-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 17px; background: rgba(17,168,164,.12); border-radius: 50%; font-size: 1.35rem; }
.amenity h3 { margin-bottom: 7px; font-size: 1.15rem; }
.amenity p { margin: 0; color: var(--muted); font-size: .9rem; }

.gallery { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: 250px 250px; gap: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.gallery img:first-child { grid-row: 1 / 3; }

.review-panel { padding: 46px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; align-items: center; background: var(--navy); color: var(--white); border-radius: 30px; }
.review-score { text-align: center; }
.review-score strong { display: block; color: var(--gold); font-family: Santor, Georgia, serif; font-size: 4.5rem; line-height: 1; }
.review-score span { color: rgba(255,255,255,.75); }
.review-copy h2 { color: var(--white); margin-bottom: 15px; }
.review-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 27px; }
.review-tags span { padding: 8px 12px; background: rgba(255,255,255,.1); border-radius: 999px; font-size: .85rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { min-height: 330px; padding: 34px; display: flex; flex-direction: column; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.service:nth-child(2) { background: var(--teal); color: white; }
.service:nth-child(2) h3, .service:nth-child(2) .eyebrow { color: white; }
.service:nth-child(3) { background: var(--navy); color: white; }
.service:nth-child(3) h3, .service:nth-child(3) .eyebrow { color: white; }
.service p { color: inherit; opacity: .82; }
.service .text-link { margin-top: auto; font-weight: 800; color: inherit; }

.direct-box { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; padding: 52px; background: linear-gradient(135deg, var(--gold), #ffe29a); border-radius: 30px; }
.direct-box h2 { margin-bottom: 12px; }
.payment-list { display: grid; gap: 10px; }
.payment-item { padding: 13px 16px; background: rgba(255,255,255,.55); border-radius: 13px; font-weight: 800; }

.contact { background: var(--navy-deep); color: white; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.contact h2 { color: white; }
.contact a:not(.btn) { color: var(--gold); }
.contact-card { padding: 35px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; }
.contact-card p { margin-bottom: 9px; }

.site-footer { padding: 30px 0; background: #021522; color: rgba(255,255,255,.7); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand > img:first-child { width: 42px; }
.aak-inmuebles { width: 88px; margin-left: 10px; opacity: .9; }

.float-whatsapp, .chat-toggle { position: fixed; z-index: 1200; right: 22px; width: 58px; height: 58px; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; box-shadow: 0 9px 28px rgba(0,0,0,.24); }
.float-whatsapp { bottom: 92px; background: #25d366; font-weight: 900; font-size: .8rem; }
.chat-toggle { bottom: 22px; background: var(--teal); font-size: 1.45rem; }
.chat-panel { position: fixed; z-index: 1190; right: 22px; bottom: 92px; width: min(370px, calc(100vw - 32px)); overflow: hidden; background: white; border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); transform: translateY(15px); opacity: 0; pointer-events: none; transition: .2s ease; }
.chat-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { padding: 18px; background: var(--teal); color: white; }
.chat-head strong { display: block; }
.chat-head small { opacity: .85; }
.chat-messages { height: 275px; padding: 16px; overflow-y: auto; background: #f5faf9; }
.message { max-width: 88%; margin-bottom: 10px; padding: 10px 12px; border-radius: 14px; font-size: .88rem; }
.message.bot { background: white; border: 1px solid #dfeceb; }
.message.user { margin-left: auto; background: var(--teal); color: white; }
.chat-form { display: flex; gap: 8px; padding: 12px; }
.chat-form input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid #d5e1e3; border-radius: 12px; }
.chat-form button { width: 43px; border: 0; border-radius: 12px; background: var(--navy); color: white; }

@media (max-width: 980px) {
  .nav { position: fixed; inset: 0; padding: 120px 30px 40px; flex-direction: column; align-items: flex-start; background: var(--navy-deep); transform: translateX(100%); transition: transform .25s; }
  .nav.open { transform: none; }
  .nav a { font-size: 1.25rem; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .header-cta { display: none; }
  .booking-bar { grid-template-columns: 1fr 1fr; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 250px; }
  .direct-box { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 72px 0; }
  .header-inner { min-height: 76px; }
  .brand img { width: 49px; height: 49px; }
  .brand-name { font-size: 1.35rem; }
  .hero { min-height: 720px; }
  .hero-content { padding: 140px 0 150px; }
  .hero-badge { left: 14px; right: 14px; bottom: 86px; }
  .booking-bar { grid-template-columns: 1fr; margin-top: -55px; }
  .intro-grid { gap: 42px; }
  .facts { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 250px 175px 175px; }
  .gallery img:first-child { grid-column: 1 / 3; grid-row: auto; }
  .review-panel { padding: 32px 22px; grid-template-columns: 1fr; gap: 28px; }
  .direct-box { padding: 34px 22px; }
  .section-head, .footer-inner { align-items: flex-start; flex-direction: column; }
  .contact-grid { gap: 35px; }
  .float-whatsapp, .chat-toggle { right: 14px; }
  .chat-panel { right: 14px; }
}

