/* Herbolario Crisálida — hoja de estilos */
:root {
  --cream: #f7f2e9;
  --cream-2: #efe6d6;
  --paper: #fffdf8;
  --ink: #1f2440;
  --ink-soft: #4a4f66;
  --navy: #2e346e;
  --navy-deep: #1d2150;
  --sage: #6f8a5e;
  --sage-soft: #dfe7d3;
  --terra: #c0703f;
  --gold: #d9b26a;
  --line: rgba(31, 36, 64, .12);
  --radius: 22px;
  --shadow: 0 18px 50px -20px rgba(29, 33, 80, .35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
em.accent { font-style: italic; color: var(--sage); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(70px, 10vw, 130px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 10px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s, background .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(46, 52, 110, .7); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--navy-deep); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); text-decoration: none; }
.link-arrow svg { width: 18px; transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Cabecera */
.topbar { background: var(--navy-deep); color: #e8e6f3; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }
.topbar .tb-right { display: flex; gap: 22px; }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 233, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(29, 33, 80, .4); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 20px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .nav .dd > button {
  font: 500 .98rem var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 10px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; transition: background .2s;
}
.nav > a:hover, .nav .dd > button:hover, .nav a[aria-current="page"] { background: var(--cream-2); }
.nav .dd { position: relative; }
.nav .dd svg { width: 14px; transition: transform .25s; }
.dd-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 10px; min-width: 300px;
  opacity: 0; visibility: hidden; transition: .25s; border: 1px solid var(--line);
}
.dd-menu a { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; }
.dd-menu a:hover { background: var(--cream); }
.dd-menu img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.dd-menu strong { display: block; font-weight: 600; font-size: .95rem; }
.dd-menu small { color: var(--ink-soft); font-size: .8rem; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd:hover > button svg, .dd.open > button svg { transform: rotate(180deg); }
.nav .btn { margin-left: 10px; padding: 12px 20px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: .3s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, var(--sage-soft) 0%, transparent 68%); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--sage); font-weight: 400; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 34px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta div { font-size: .9rem; color: var(--ink-soft); }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--navy); line-height: 1.2; }
.hero-art { position: relative; height: clamp(440px, 52vw, 620px); }
.hero-art .arch {
  position: absolute; right: 0; top: 0; width: 74%; height: 92%;
  border-radius: 999px 999px 26px 26px; overflow: hidden; box-shadow: var(--shadow);
}
.hero-art .arch img, .hero-art .round img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .round {
  position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 8px solid var(--cream); box-shadow: var(--shadow);
}
.hero-art .badge {
  position: absolute; left: 6%; top: 12%; background: var(--paper); border-radius: 18px; padding: 16px 20px;
  box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 250px; animation: float 6s ease-in-out infinite;
}
.hero-art .badge .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); display: grid; place-items: center; flex: none; }
.hero-art .badge svg { width: 22px; }
.hero-art .badge strong { display: block; font-size: .95rem; }
.hero-art .badge small { color: var(--ink-soft); font-size: .8rem; line-height: 1.3; display: block; }
.leaf { position: absolute; color: var(--sage); opacity: .9; }
.hero-art .leaf { right: -18px; bottom: 4%; width: 120px; transform: rotate(-20deg); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Marquesina */
.marquee { background: var(--navy); color: var(--cream); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-style: italic; white-space: nowrap; display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; }
.marquee span::after { content: "✿"; font-style: normal; color: var(--gold); font-size: 1rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sobre nosotros (home) */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about-img .stamp {
  position: absolute; right: -28px; bottom: 36px; width: 130px; height: 130px; border-radius: 50%; background: var(--terra); color: #fff;
  display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: 1.05rem; line-height: 1.15; padding: 18px;
  box-shadow: var(--shadow); transform: rotate(-8deg);
}
.checks { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); margin-top: 1px; }

/* Servicios */
.services { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 54px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head p { max-width: 46ch; color: var(--ink-soft); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream); text-decoration: none;
  display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 1; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-num { font-family: var(--serif); font-style: italic; color: var(--terra); font-size: .95rem; margin-bottom: 6px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 16px; }
.card .who { margin-top: auto; font-size: .82rem; color: var(--sage); font-weight: 600; display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.card .who svg { width: 16px; }

/* Novedades */
.news { overflow: hidden; }
.news-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.news-track figure { margin: 0; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: 0 10px 30px -18px rgba(29,33,80,.35); }
.news-track img { width: 100%; aspect-ratio: 595/744; object-fit: cover; transition: transform .6s; }
.news-track figure:hover img { transform: scale(1.04); }
.news-ctrl { display: flex; gap: 10px; }
.round-btn { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; display: grid; place-items: center; cursor: pointer; transition: .25s; color: var(--ink); }
.round-btn:hover { background: var(--ink); color: var(--cream); }
.round-btn svg { width: 20px; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery button { padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--cream-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; }
.gallery button:hover img { transform: scale(1.05); filter: saturate(1.1); }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 17, 40, .92); display: none; place-items: center; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; max-width: min(92vw, 1000px); border-radius: 14px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox button svg { width: 22px; }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 20px; top: 50%; } .lb-next { right: 20px; top: 50%; }

/* Contacto */
.contact { background: var(--navy-deep); color: #e9e8f4; position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; left: -200px; bottom: -300px; background: radial-gradient(circle, rgba(111,138,94,.35), transparent 70%); }
.contact .wrap { position: relative; z-index: 1; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--gold); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact .lead { color: #c9c8de; }
.info-list { list-style: none; padding: 0; margin: 34px 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; color: var(--gold); }
.info-list svg { width: 22px; }
.info-list small { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: #a5a4c4; }
.info-list a, .info-list span { color: #fff; text-decoration: none; font-size: 1.05rem; }
.info-list a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); color: #fff; transition: .25s; }
.socials a:hover { background: #fff; color: var(--navy-deep); }
.socials svg { width: 19px; }

.form { background: var(--paper); color: var(--ink); border-radius: 26px; padding: clamp(26px, 4vw, 44px); box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.form h3 { font-size: 1.7rem; margin-bottom: 6px; }
.form > p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream);
  color: var(--ink); transition: border-color .2s, background .2s; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); margin: 20px 0 22px; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); margin-top: 2px; flex: none; }
.check a { color: var(--navy); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.form-msg { margin: 16px 0 0; font-size: .95rem; padding: 12px 16px; border-radius: 12px; display: none; }
.form-msg.ok { display: block; background: var(--sage-soft); color: #36502a; }
.form-msg.err { display: block; background: #f8e1d6; color: #8a3a12; }

/* Mapa */
.map { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 16/7; background: var(--cream-2) url("/img/fachada.webp") center/cover; }
.map::before { content: ""; position: absolute; inset: 0; background: rgba(29, 33, 80, .55); }
.map .map-cta { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 20px; }
.map .map-cta p { font-size: .85rem; opacity: .85; margin: 12px 0 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cabecera de páginas interiores */
.page-hero { padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 6vw, 70px); position: relative; }
.page-hero .crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 18px; }
.page-hero .crumbs a { text-decoration: none; } .page-hero .crumbs a:hover { color: var(--navy); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); max-width: 18ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split-img img { border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.who-card { display: inline-flex; gap: 14px; align-items: center; background: var(--paper); border-radius: 999px; padding: 8px 22px 8px 8px; margin: 10px 0 26px; box-shadow: 0 8px 24px -16px rgba(29,33,80,.4); }
.who-card .av { width: 46px; height: 46px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; }
.who-card small { display: block; color: var(--ink-soft); font-size: .78rem; }
.who-card strong { font-size: .98rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--paper); border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--sage-soft); color: var(--sage); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 26px; }
.feature h3 { font-size: 1.3rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.quote { text-align: center; max-width: 820px; margin: 0 auto; }
.quote p { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.25; font-style: italic; color: var(--navy); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.tags span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; }
.other-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini { display: flex; gap: 16px; align-items: center; background: var(--paper); padding: 14px; border-radius: 18px; text-decoration: none; border: 1px solid var(--line); transition: .3s; }
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini img { width: 70px; height: 70px; border-radius: 14px; object-fit: cover; }
.mini strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; display: block; }
.mini small { color: var(--ink-soft); }

/* Textos legales */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal table { border-collapse: collapse; width: 100%; font-size: .92rem; margin-bottom: 1em; }
.legal td, .legal th { border: 1px solid var(--line); padding: 10px; text-align: left; }

/* Pie */
.footer { background: #14173a; color: #b8b7d1; padding: 80px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer img.logo { height: 46px; width: auto; margin-bottom: 20px; }
.footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; } .footer a:hover { color: #fff; }
.footer-bottom { margin-top: 60px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.kit { background: #fff; border-radius: 12px; padding: 10px 14px; margin-top: 30px; display: inline-block; }
.kit img { height: 62px; width: auto; }

/* Botón flotante WhatsApp/teléfono */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.4); transition: transform .25s; }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; }

/* Animaciones de aparición */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .topbar .tb-left { display: none; }
  .topbar .wrap { justify-content: center; }
  .burger { display: block; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 100px 24px 30px; gap: 4px; transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1); box-shadow: var(--shadow); overflow-y: auto; z-index: 40;
  }
  .nav { visibility: hidden; transition: transform .4s cubic-bezier(.2,.7,.2,1), visibility 0s .4s; }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
  .nav > a, .nav .dd > button { font-size: 1.15rem; padding: 14px 16px; width: 100%; justify-content: space-between; }
  .dd-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; display: none; padding: 0 0 8px; min-width: 0; background: none; }
  .dd.open .dd-menu { display: block; transform: none; }
  .dd:hover .dd-menu { transform: none; }
  .nav .btn { margin: 16px 0 0; }
  .burger { z-index: 45; }
  .header .wrap { height: 72px; }
  .brand img { height: 38px; }
  .hero-grid, .about-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .hero-art { height: 480px; max-width: 520px; width: 100%; margin: 0 auto; }
  .about-img { max-width: 480px; }
  .about-img .stamp { right: 10px; }
  .split-img { max-width: 460px; margin: 0 auto; width: 100%; }
  .other-services { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4/3; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .cards { grid-template-columns: 1fr; }
  .card { flex-direction: row; }
  .card-img { width: 38%; aspect-ratio: auto; flex: none; }
  .card-body { padding: 18px; }
  .card p { display: none; }
  .card h3 { font-size: 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery .g-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-art { height: 400px; }
  .hero-art .badge { left: 0; top: 4%; }
  .hero-meta { gap: 22px; }
  .lightbox button.lb-prev, .lightbox button.lb-next { top: auto; bottom: 20px; }
  .lb-prev { left: calc(50% - 64px) !important; } .lb-next { right: calc(50% - 64px) !important; }
}

/* Ajustes de rejilla */
.gallery { grid-auto-flow: dense; }
@media (min-width: 901px) { .features.three { grid-template-columns: repeat(3, 1fr); } }
.nav-open .fab { display: none; }

/* Tarjeta de visita (sustituye al formulario) */
.visit-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 18px; margin-bottom: 24px; }
.visit-actions { display: grid; gap: 12px; }
.visit-actions .btn { width: 100%; }
