:root {
  --green: #5a7466;
  --green-dark: #46604f;
  --sand: #f6f1ea;
  --cream: #fdfcf6;
  --ink: #2b2f2c;
  --muted: #66706a;
  --line: #e6dfd4;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(43, 47, 44, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--green); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 1.2rem 0 2rem; max-width: 34rem; }

/* Botones */
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  padding: .9rem 1.6rem; border-radius: 999px; font-weight: 600; border: 2px solid var(--green);
  transition: background .2s, transform .2s; cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--green-dark); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn--small { padding: .55rem 1.2rem; }
.btn--full { width: 100%; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 249, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo__mark { width: 52px; height: 52px; }
.logo__text strong { font-weight: 400; }
.logo__text { font-family: var(--serif); font-size: 1.5rem; line-height: 1.05; display: flex; flex-direction: column; text-transform: uppercase; letter-spacing: .18em; }
.logo__text small { font-family: var(--sans); font-size: .6rem; letter-spacing: .22em; color: var(--green-dark); margin-top: .2rem; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream), var(--sand)); padding: 5rem 0 6rem; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; color: var(--muted); font-size: .95rem; }
.hero__facts strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--green-dark); }
.hero__visual { position: relative; height: 420px; }
.blob { position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.blob--2 { width: 45%; height: 45%; right: -4%; bottom: -4%; background: #e8c9a9; animation: morph 9s ease-in-out infinite reverse; }
.hero__photo { position: absolute; inset: 0 8% 8% 0; width: 92%; height: 92%; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero__card { position: absolute; left: -1rem; bottom: 2rem; background: #fff; padding: 1.2rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 260px; font-family: var(--serif); font-size: 1.05rem; }
@keyframes morph { 50% { border-radius: 58% 42% 37% 63% / 55% 38% 62% 45%; } }

/* Secciones */
.section { padding: 6rem 0; }
.section--tint { background: var(--sand); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section__head p:last-child:not(.eyebrow) { color: var(--muted); margin-top: .8rem; }

.grid { display: grid; gap: 1.8rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; background: var(--sand); border-radius: 14px; margin-bottom: 1.2rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); }

.price-note { text-align: center; margin-top: 2.5rem; color: var(--muted); }
.price-note strong { color: var(--green-dark); }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 1rem; }
.gallery__item { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 22, 21, .9); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.lightbox__close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; }

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; counter-reset: s; }
.steps li { text-align: center; }
.steps span { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 1rem; }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); }

/* Equipo */
.member { text-align: center; }
.member__photo { object-fit: cover;
  width: 160px; height: 160px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--hue) 35% 80%), hsl(var(--hue) 30% 60%));
  display: grid; place-items: center; font-family: var(--serif); font-size: 2.4rem; color: #fff;
}
.member__role { color: var(--green); font-weight: 600; font-size: .92rem; margin: .3rem 0 .6rem; }
.member > p:not(.member__role) { color: var(--muted); font-size: .95rem; }
.member__more { margin-top: .8rem; text-align: left; font-size: .88rem; color: var(--muted); }
.member__more summary { cursor: pointer; text-align: center; color: var(--green-dark); font-weight: 600; }
.member__more ul { margin: .6rem 0 0 1.1rem; display: grid; gap: .3rem; }
.member__more p { margin-top: .6rem; }
.price-note small { display: inline-block; margin-top: .4rem; }

/* Testimonios */
.quote { background: #fff; padding: 2rem; border-radius: var(--radius); position: relative; }
.quote::before { content: "“"; position: absolute; top: -.6rem; left: 1.2rem; font-family: var(--serif); font-size: 4.5rem; color: var(--green); opacity: .3; }
.quote p { font-family: var(--serif); font-size: 1.08rem; margin-bottom: 1rem; }
.quote footer { color: var(--muted); font-size: .92rem; font-weight: 500; }

/* Blog */
.post__img { width: 100%; object-fit: cover; aspect-ratio: 16/10; border-radius: var(--radius); margin-bottom: 1rem; background: linear-gradient(135deg, hsl(var(--hue) 35% 85%), hsl(var(--hue) 30% 65%)); }
.post__meta { font-size: .82rem; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.post h3 { margin: .4rem 0 .5rem; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--green); }
.post p:last-child { color: var(--muted); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact__info > p { color: var(--muted); margin: .8rem 0 1.5rem; }
.contact__list { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.contact__list span { display: inline-block; width: 1.8rem; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.form { background: #fff; padding: 2.2rem; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: .35rem; }
.form label { font-weight: 500; font-size: .92rem; }
.form small { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  font: inherit; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(90, 116, 102, .2); }
.form .invalid { border-color: #c0573f; }
.form__check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem !important; font-weight: 400 !important; }
.form__check input { margin-top: .3rem; }
.form__status { font-size: .95rem; text-align: center; min-height: 1.5em; }
.form__status.ok { color: var(--green-dark); }
.form__status.error { color: #c0573f; }

/* Pie */
.footer { background: var(--ink); color: #cfd6d1; padding: 2rem 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { color: #cfd6d1; text-decoration: none; }
.footer a:hover { color: #fff; }

/* WhatsApp */
.whatsapp { position: fixed; right: 1.4rem; bottom: 1.4rem; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 60; transition: transform .2s; }
.whatsapp:hover { transform: scale(1.08); }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner, .contact { grid-template-columns: 1fr; }
  .hero__visual { height: 300px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 1.2rem;
    background: var(--cream); padding: 1.5rem; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: .3s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 160px; gap: .6rem; }
  .section { padding: 4rem 0; }
  .hero { padding: 3rem 0 4rem; }
}
.map__btn { margin-bottom: 1rem; }
.map__consent { height: 100%; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 1.5rem; text-align: center; background: #fff; color: var(--muted); font-size: .92rem; }
.form__legal { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* Páginas legales */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: .4rem; }
.legal__updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; }
.legal p, .legal ul { margin-bottom: 1rem; }
.legal ul { padding-left: 1.3rem; display: grid; gap: .35rem; }

/* Despachos */
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 3rem; }
.fact { background: #fff; border-radius: var(--radius); padding: 1.4rem; text-align: center; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--green-dark); font-weight: 600; }
.fact span { color: var(--muted); font-size: .92rem; }
.rent { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; margin-bottom: 3rem; }
.rent__text p { margin-bottom: 1rem; color: var(--ink); }
.rent__prices { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.rent__prices h3 { margin-bottom: 1rem; }
.rent__prices h4 { font-family: var(--serif); font-size: 1.05rem; margin: 1.6rem 0 .6rem; }
.prices { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prices th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); padding: 0 0 .6rem; border-bottom: 1px solid var(--line); }
.prices td { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.prices td:last-child, .prices th:last-child { text-align: right; font-weight: 600; color: var(--green-dark); }
.prices td:nth-child(2) { color: var(--muted); }
.hours { list-style: none; display: grid; gap: .4rem; }
.hours li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: .35rem 0; }
.hours strong { color: var(--green-dark); }
.rent__note { margin-top: 1.2rem; font-size: .88rem; color: var(--muted); }
.rent__subtitle { text-align: center; font-size: 1.6rem; margin-bottom: 1.5rem; }
.includes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem 1.5rem; margin-bottom: 3rem; }
.includes li { position: relative; padding-left: 1.8rem; }
.includes li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--green); color: #fff; font-size: .75rem; display: grid; place-items: center; margin-top: .2rem; }
.rent__extra { margin-bottom: 3rem; }
.rent__cta { text-align: center; }
.rent__cta p { font-family: var(--serif); font-size: 1.4rem; color: var(--green-dark); margin-bottom: 1.2rem; }
.rent__cta .hero__actions { justify-content: center; }
@media (max-width: 900px) {
  .rent { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .includes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid--2, .includes { grid-template-columns: 1fr; }
  .rent__prices { padding: 1.4rem; }
}
