/* Layout: casa con patio — arched "window" photos, airy sections, garden greens + sunflower warmth */
:root {
  --bg: #f6f8f6;          /* blanco con un toque verde jardín */
  --surface: #ffffff;
  --surface-2: #eef4f1;   /* verde menta muy suave */
  --ink: #2c3a3f;         /* pizarra cálida */
  --ink-soft: #55666b;
  --sky: #a9c9d8;         /* celeste de las paredes del patio */
  --sky-deep: #3f6f84;
  --sun: #f3c65a;         /* girasol, como los uniformes */
  --sun-soft: #fbefcd;
  --sage: #8fae8b;
  --blush: #f4dfd9;       /* rosa de las habitaciones */
  --line: #dbe5e1;
  --footer-bg: #2c3a3f; --footer-ink: #f6f8f6; --footer-soft: #c9d5d2; --footer-line: #46565b;
  --shadow: 0 10px 30px -18px rgba(44, 58, 63, .35);
  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --arch: 999px 999px var(--radius) var(--radius);
  --wrap: 1180px;
  color-scheme: light; /* mismos colores en todos los dispositivos */
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--sky-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; max-width: 65ch; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-deep); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: #2c3a3f; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--f-display); font-size: 1.3rem; line-height: 1; }
.brand-sub { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; font-family: var(--f-body); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--sun-soft); }
.nav .nav-cta { background: var(--sun); color: #2c3a3f; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--sun); filter: brightness(1.04); }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .nav-cta { margin-left: 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sun { background: var(--sun); color: #2c3a3f; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.phone-big { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink); text-decoration: none; white-space: nowrap; user-select: all; display: inline-block; padding-block: 8px; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.tint { background: var(--surface-2); }
.blush { background: var(--blush); }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, var(--sun-soft) 0 55%, transparent 56%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-photos { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; align-items: end; }
.arch { border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-photos .a1 { aspect-ratio: 3 / 4.2; }
.hero-photos .a2 { aspect-ratio: 3 / 3.6; margin-bottom: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; }
.facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
@media (max-width: 860px) {
  .hero { padding-top: 20px; }
  .hero::before { width: 360px; height: 360px; right: -120px; top: -140px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-photos { order: -1; grid-template-columns: 1.2fr .8fr; gap: 10px; max-width: 560px; }
  .hero-photos .a1 { aspect-ratio: auto; height: clamp(190px, 30vh, 280px); }
  .hero-photos .a2 { aspect-ratio: auto; height: clamp(150px, 24vh, 220px); margin-bottom: 0; }
  .hero-copy { gap: 16px; }
}

/* Cards & grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sun-soft); color: var(--ink); }
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--ink-soft); }
.photo-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: grid; }
.photo-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.photo-card div { padding: 20px 22px 24px; display: grid; gap: 8px; }
.photo-card p { color: var(--ink-soft); }
.stack { display: grid; gap: 18px; min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232c3a3f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo .arch:nth-child(2) { margin-top: 48px; }
.duo .arch { aspect-ratio: 3 / 4; }

/* Mosaic strip */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mosaic a { border-radius: 14px; overflow: hidden; display: block; aspect-ratio: 1; background: var(--surface-2); }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mosaic a:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .mosaic { grid-template-columns: 1fr 1fr; } }

/* Quote band */
.band { background: var(--sky); color: #1f3038; }
.band h2, .band p { color: #1f3038; }
.band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.areas li { background: var(--surface); border: 1px dashed var(--sage); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .92rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 1.4rem; line-height: 1; color: var(--sky-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--ink-soft); }

/* Page hero (inner) */
.page-hero { padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px); }
.page-hero .wrap { display: grid; gap: 14px; }
.crumbs { font-size: .88rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { font: inherit; font-weight: 800; font-size: .92rem; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: #2c3a3f; }
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--surface-2); position: relative; }
.gallery button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.gallery button:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.gallery img { width: 100%; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
/* Descripciones ocultas a la vista, disponibles para buscadores y lectores de pantalla */
.gallery figcaption, .lb-cap { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 22, 25, .92); display: grid; grid-template-rows: 1fr auto; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); }
.lightbox img { max-height: 82vh; max-width: 100%; margin: auto; border-radius: 10px; object-fit: contain; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; max-width: 1100px; width: 100%; margin-inline: auto; }
.lb-bar p { color: #fff; font-weight: 700; min-width: 0; }
.lb-bar .lb-btns { display: flex; gap: 8px; flex: none; }
.lb-bar button { font: inherit; font-weight: 800; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 18px; }
.info-list div { display: grid; gap: 2px; }
.info-list dt { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.info-list dd { margin: 0; font-size: 1.1rem; font-weight: 700; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card { display: grid; place-content: center; text-align: center; gap: 14px; height: 100%; padding: 28px; background: linear-gradient(135deg, var(--surface-2), var(--sun-soft)); }
.map-card svg { width: 56px; height: 56px; margin-inline: auto; color: var(--sky-deep); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: 56px 32px; }
.site-footer a { color: var(--footer-ink); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: var(--footer-ink); font-size: 1.1rem; margin-bottom: 10px; }
.site-footer p, .site-footer li { color: var(--footer-soft); font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .legal { border-top: 1px solid var(--footer-line); margin-top: 36px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Móvil: textos chicos más legibles */
@media (max-width: 640px) {
  .eyebrow, .info-list dt { font-size: .86rem; }
  .brand-sub { font-size: .78rem; letter-spacing: .1em; }
  .facts li, .areas li { font-size: .95rem; }
}
