/*
Theme Name: OKINI
Theme URI: https://okini.es
Author: OKINI Gestión
Author URI: https://okini.es
Description: Tema corporativo y catálogo de alojamientos para OKINI Gestión.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: okini
Domain Path: /languages
*/

:root {
  --okini-ink: #182129;
  --okini-soft: #657078;
  --okini-paper: #fbfaf8;
  --okini-white: #fff;
  --okini-line: rgba(24, 33, 41, .13);
  --okini-blue: #b8d9f0;
  --okini-lavender: #ddd3e5;
  --okini-coral: #facbb8;
  --okini-gradient: linear-gradient(115deg, var(--okini-blue), var(--okini-lavender) 48%, var(--okini-coral));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--okini-paper); color: var(--okini-ink); font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 99999; top: 1rem; left: 1rem; width: auto; height: auto; padding: .75rem 1rem; clip: auto; background: white; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.45rem clamp(1.25rem,4vw,4.5rem); }
.brand { width: 104px; display: block; }
.brand img, .custom-logo-link img { display: block; width: 104px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 2rem; font-size: .83rem; }
.desktop-nav ul { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.desktop-nav a { position: relative; padding: .5rem 0; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .25rem; height: 1px; background: var(--okini-ink); transition: right .25s ease; }
.desktop-nav a:hover::after { right: 0; }
.language-switch { justify-self: end; display: flex; align-items: center; gap: .45rem; margin: 0; padding: 0; list-style: none; font-size: .74rem; font-weight: 700; text-transform: uppercase; }
.language-switch li { opacity: .42; }
.language-switch .current-lang { opacity: 1; }
.language-switch li + li::before { content: "/"; margin-right: .45rem; opacity: .35; }

.hero { min-height: 760px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,6vw,7rem); align-items: center; padding: 8.5rem clamp(1.25rem,6vw,7.5rem) 5rem; overflow: hidden; }
.hero-copy { max-width: 700px; }
.eyebrow { margin: 0 0 1.6rem; font-size: .72rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; color: var(--okini-soft); }
.hero h1 { margin: 0; font-size: clamp(3.5rem,7.4vw,8.3rem); line-height: .91; letter-spacing: -.072em; font-weight: 520; }
.hero h1 span { color: transparent; background: var(--okini-gradient); background-clip: text; -webkit-background-clip: text; }
.hero-intro { max-width: 580px; margin: 2.3rem 0 0; font-size: clamp(1.05rem,1.5vw,1.3rem); line-height: 1.72; color: var(--okini-soft); }
.scroll-cue { margin-top: 2.5rem; padding: 0 0 .5rem; display: inline-flex; align-items: center; gap: 1.25rem; border-bottom: 1px solid var(--okini-ink); font-size: .84rem; font-weight: 650; }
.hero-visual { position: relative; min-height: 560px; }
.hero-visual::before { content: ""; position: absolute; width: 105%; height: 87%; left: -13%; top: 4%; border-radius: 52% 48% 46% 54% / 45% 55% 45% 55%; background: var(--okini-gradient); opacity: .44; transform: rotate(-5deg); }
.hero-image-wrap { position: absolute; inset: 0 0 2rem; border-radius: 48% 48% 1.7rem 1.7rem; overflow: hidden; transform: rotate(2.5deg); box-shadow: 0 30px 80px rgba(41,48,55,.14); background: var(--okini-gradient); }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02) rotate(-2.5deg); }
.island-stamp { position: absolute; right: -1.5rem; bottom: 0; width: 118px; height: 118px; border-radius: 50%; background: var(--okini-ink); color: white; display: grid; place-content: center; text-align: center; box-shadow: 0 14px 34px rgba(24,33,41,.18); }
.island-stamp span { font-size: 1.45rem; font-weight: 650; line-height: 1; }
.island-stamp small { margin-top: .45rem; font-size: .55rem; letter-spacing: .2em; }

.paths { display: grid; grid-template-columns: 1fr 1fr; min-height: 360px; }
.path-card { position: relative; padding: clamp(2rem,5vw,5.5rem); display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.2rem,3vw,3rem); align-items: center; }
.path-stay { background: var(--okini-gradient); }
.path-owner { background: var(--okini-ink); color: white; }
.path-number { align-self: start; font-size: .7rem; font-weight: 700; letter-spacing: .18em; opacity: .55; }
.path-card h2 { margin: 0; font-size: clamp(2rem,4vw,4rem); line-height: 1; letter-spacing: -.055em; font-weight: 540; }
.path-card p { max-width: 390px; margin: 1.25rem 0 0; font-size: 1rem; line-height: 1.65; opacity: .72; }
.round-link { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.82); color: var(--okini-ink); display: grid; place-items: center; font-size: 1.35rem; transition: transform .25s ease, background .25s ease; }
.round-link:hover { transform: rotate(7deg) scale(1.05); background: white; }
.round-link.dark { background: var(--okini-gradient); }

.homes-section, .archive-properties { padding: clamp(5rem,9vw,9rem) clamp(1.25rem,6vw,7.5rem); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.section-heading .eyebrow { margin-bottom: 1.2rem; }
.section-heading h2, .archive-heading h1 { max-width: 760px; margin: 0; font-size: clamp(2.5rem,5vw,5.6rem); line-height: .98; letter-spacing: -.06em; font-weight: 520; }
.section-heading > p { max-width: 400px; margin: 0 0 .5rem auto; line-height: 1.7; color: var(--okini-soft); }
.homes-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.5rem,3vw,3rem); }
.home-card { overflow: hidden; border-radius: 1.6rem; background: var(--okini-white); box-shadow: 0 18px 50px rgba(36,43,49,.07); }
.home-image { position: relative; display: block; aspect-ratio: 1.34 / 1; overflow: hidden; background: var(--okini-gradient); }
.home-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.home-card:hover .home-image > img { transform: scale(1.035); }
.home-index { position: absolute; top: 1.1rem; left: 1.1rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); font-size: .65rem; font-weight: 800; }
.home-tags { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.home-tags > span { padding: .48rem .72rem; border-radius: 999px; background: rgba(255,255,255,.91); backdrop-filter: blur(10px); font-size: .66rem; font-weight: 650; }
.home-content { padding: clamp(1.4rem,3vw,2.2rem); }
.home-location { margin: 0 0 .85rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--okini-soft); }
.home-content h3 { margin: 0; font-size: clamp(1.75rem,3vw,2.6rem); letter-spacing: -.045em; font-weight: 560; }
.home-summary { margin: 1rem 0 1.3rem; line-height: 1.65; color: var(--okini-soft); }
.home-facts { padding: 1.05rem 0; display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; border-top: 1px solid var(--okini-line); border-bottom: 1px solid var(--okini-line); color: #4e5960; font-size: .76rem; }
.availability-link { width: 100%; margin-top: 1.25rem; padding: .15rem 0; display: flex; align-items: center; gap: .65rem; border: 0; background: transparent; font-size: .82rem; font-weight: 700; cursor: pointer; text-align: left; }
.availability-link span { margin-left: auto; }
.archive-link { display: inline-block; margin-top: 2.3rem; padding-bottom: .4rem; border-bottom: 1px solid var(--okini-ink); font-size: .84rem; font-weight: 700; }

.services-section { padding: clamp(5rem,9vw,9rem) clamp(1.25rem,6vw,7.5rem); display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(3rem,7vw,8rem); background: #f0f0ed; }
.services-intro { position: sticky; top: 3rem; align-self: start; }
.services-intro h2 { max-width: 620px; margin: 0; font-size: clamp(2.7rem,5.3vw,5.7rem); line-height: .97; letter-spacing: -.063em; font-weight: 520; }
.services-intro > p:not(.eyebrow) { max-width: 500px; margin: 1.8rem 0; line-height: 1.75; color: var(--okini-soft); }
.owner-inline-link { display: inline-flex; align-items: center; gap: .7rem; padding-bottom: .45rem; border-bottom: 1px solid var(--okini-ink); font-size: .83rem; font-weight: 700; }
.services-grid { border-top: 1px solid var(--okini-line); }
.service-card { padding: 1.8rem 0; display: grid; grid-template-columns: 110px .75fr 1.25fr; gap: 1.5rem; align-items: start; border-bottom: 1px solid var(--okini-line); }
.service-top { display: flex; align-items: center; gap: 1rem; color: #66717a; }
.service-top > span:last-child { font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
.service-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--okini-gradient); color: var(--okini-ink); font-size: .7rem; font-weight: 800; }
.service-card h3 { margin: 0; font-size: 1.1rem; font-weight: 650; }
.service-card p { margin: 0; max-width: 440px; font-size: .9rem; line-height: 1.65; color: var(--okini-soft); }

.story-section { position: relative; padding: clamp(5rem,10vw,10rem) clamp(1.25rem,8vw,11rem); display: grid; grid-template-columns: 80px 1fr; gap: 2rem; background: var(--okini-ink); color: white; overflow: hidden; }
.story-section::after { content: "ō"; position: absolute; right: -3vw; bottom: -20vw; font-size: min(50vw,760px); line-height: 1; font-weight: 300; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09); }
.story-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--okini-gradient); color: var(--okini-ink); }
.story-copy { position: relative; z-index: 1; }
.story-copy .eyebrow { color: rgba(255,255,255,.55); }
.story-copy h2 { max-width: 980px; margin: 0; font-size: clamp(2.7rem,6vw,6.8rem); line-height: .98; letter-spacing: -.065em; font-weight: 500; }
.story-columns { max-width: 880px; margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.story-columns p { margin: 0; line-height: 1.8; color: rgba(255,255,255,.68); }
.story-section blockquote { position: relative; z-index: 1; grid-column: 2; max-width: 780px; margin: 5rem 0 0; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.18); font-size: clamp(1.8rem,3.4vw,3.5rem); line-height: 1.18; letter-spacing: -.04em; background: var(--okini-gradient); color: transparent; background-clip: text; -webkit-background-clip: text; }

.owner-callout { padding: clamp(3rem,6vw,6rem) clamp(1.25rem,6vw,7.5rem); display: grid; grid-template-columns: 1fr .75fr auto; gap: 3rem; align-items: end; background: var(--okini-gradient); }
.owner-callout .eyebrow { margin-bottom: 1rem; }
.owner-callout h2 { max-width: 700px; margin: 0; font-size: clamp(2.4rem,4.8vw,5rem); line-height: .98; letter-spacing: -.06em; font-weight: 520; }
.owner-callout > p { max-width: 470px; margin: 0; line-height: 1.7; color: rgba(24,33,41,.7); }
.owner-button { min-height: 54px; padding: 0 1.35rem; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; border-radius: 999px; background: var(--okini-ink); color: white; white-space: nowrap; font-size: .84rem; font-weight: 700; }

.contact-section { padding: clamp(5rem,9vw,9rem) clamp(1.25rem,7vw,9rem); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem,8vw,9rem); }
.contact-copy h2 { max-width: 660px; margin: 0; font-size: clamp(2.8rem,5.5vw,6rem); line-height: .97; letter-spacing: -.066em; font-weight: 520; }
.contact-copy > p:not(.eyebrow) { max-width: 510px; margin: 1.8rem 0; line-height: 1.75; color: var(--okini-soft); }
.direct-contact { display: flex; flex-direction: column; gap: .8rem; margin-top: 2rem; font-size: .9rem; font-weight: 650; }
.availability-form { padding: clamp(1.5rem,3vw,3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; border-radius: 1.8rem; background: white; box-shadow: 0 24px 70px rgba(38,45,51,.09); }
.field { display: flex; flex-direction: column; gap: .55rem; }
.field > span { font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--okini-soft); }
.full-field { grid-column: 1 / -1; }
.field input, .field select { width: 100%; min-height: 52px; padding: 0 1rem; border: 1px solid var(--okini-line); border-radius: .85rem; background: #fcfcfb; color: var(--okini-ink); outline: none; }
.field input:focus, .field select:focus { border-color: #94bcd4; box-shadow: 0 0 0 3px rgba(184,217,240,.35); }
.whatsapp-button { min-height: 58px; padding: 0 1.2rem; display: flex; align-items: center; gap: .75rem; border: 0; border-radius: 999px; background: var(--okini-ink); color: white; cursor: pointer; font-weight: 700; }
.whatsapp-button span { margin-left: auto; }
.form-note { margin: 0; font-size: .72rem; line-height: 1.55; color: var(--okini-soft); }

.site-footer { padding: 4rem clamp(1.25rem,6vw,7.5rem) 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: #f0f0ed; }
.footer-brand { width: 128px; }
.footer-brand img { width: 100%; }
.site-footer > p { max-width: 400px; margin: .5rem 0 0 auto; text-align: right; line-height: 1.65; color: var(--okini-soft); }
.footer-links { grid-column: 1 / -1; padding: 2.3rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; border-top: 1px solid var(--okini-line); border-bottom: 1px solid var(--okini-line); font-size: .84rem; font-weight: 650; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--okini-soft); }

.archive-properties { padding-top: 10rem; min-height: 70vh; }
.archive-heading { max-width: 820px; margin-bottom: 4rem; }
.archive-heading > p:last-child { max-width: 520px; line-height: 1.7; color: var(--okini-soft); }
.nav-links { display: flex; gap: .75rem; margin-top: 3rem; }
.page-numbers { padding: .65rem .85rem; border-radius: .6rem; background: white; }
.property-single { padding-top: 7.5rem; }
.property-hero { padding: 2rem clamp(1.25rem,6vw,7.5rem) 5rem; display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.property-hero h1 { margin: 0; font-size: clamp(3rem,6vw,7rem); line-height: .92; letter-spacing: -.07em; font-weight: 520; }
.property-lead { max-width: 580px; margin: 1.7rem 0; color: var(--okini-soft); line-height: 1.75; }
.property-facts { margin-bottom: 1.6rem; }
.property-hero-image { min-height: 610px; border-radius: 48% 48% 1.7rem 1.7rem; overflow: hidden; background: var(--okini-gradient); }
.property-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.property-body { padding: 5rem clamp(1.25rem,8vw,11rem); display: grid; grid-template-columns: 1.4fr .6fr; gap: 6rem; background: white; }
.property-description { font-size: 1.08rem; line-height: 1.8; }
.property-aside { padding: 2rem; border-radius: 1.4rem; background: #f0f0ed; }
.property-aside h2 { margin-top: 0; }
.property-aside ul { margin: 0; padding: 0; list-style: none; }
.property-aside li { padding: .8rem 0; border-bottom: 1px solid var(--okini-line); }
.property-enquiry { padding: clamp(3rem,6vw,6rem) clamp(1.25rem,8vw,11rem); display: flex; align-items: end; justify-content: space-between; gap: 2rem; background: var(--okini-gradient); }
.property-enquiry h2 { margin: 0; font-size: clamp(2.4rem,4vw,4.5rem); letter-spacing: -.055em; }
.content-shell { min-height: 70vh; padding: 10rem clamp(1.25rem,8vw,11rem) 5rem; }
.standard-entry { max-width: 850px; margin: auto; line-height: 1.8; }
.standard-entry h1 { font-size: clamp(2.8rem,5vw,5rem); letter-spacing: -.055em; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 8rem; }
  .hero-visual { min-height: 500px; }
  .paths { grid-template-columns: 1fr; }
  .path-card { min-height: 300px; }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading > p { margin-left: 0; }
  .services-section, .contact-section, .property-hero, .property-body { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .owner-callout { grid-template-columns: 1fr; align-items: start; }
  .property-hero-image { min-height: 500px; }
}

@media (max-width: 650px) {
  .site-header { padding: 1.1rem 1.25rem; }
  .brand, .brand img, .custom-logo-link img { width: 88px; }
  .hero { padding-left: 1.25rem; padding-right: 1.25rem; gap: 3rem; }
  .hero h1 { font-size: clamp(3.25rem,15vw,5.1rem); }
  .hero-visual { min-height: 390px; margin-right: .5rem; }
  .island-stamp { right: -1rem; width: 96px; height: 96px; }
  .path-card { grid-template-columns: auto 1fr; }
  .path-card .round-link { grid-column: 2; }
  .homes-grid { grid-template-columns: 1fr; }
  .home-image { aspect-ratio: 1.1 / 1; }
  .service-card { grid-template-columns: 70px 1fr; }
  .service-card p { grid-column: 2; }
  .story-section { grid-template-columns: 1fr; }
  .story-mark { margin-bottom: 1rem; }
  .story-columns { grid-template-columns: 1fr; gap: 1rem; }
  .story-section blockquote { grid-column: 1; margin-top: 3rem; }
  .availability-form { grid-template-columns: 1fr; }
  .field, .full-field { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > p { margin-left: 0; text-align: left; }
  .footer-links, .footer-bottom { grid-column: 1; }
  .footer-bottom { flex-direction: column; }
  .property-hero-image { min-height: 390px; }
  .property-enquiry { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
