/* ============================================================
   ARKIMIA — Sistema de diseño
   Base clara tipo galería · negro profundo · dorado de acento
   Display: Marcellus (capitales romanas, eco del logo grabado)
   Cuerpo:  Archivo
   ============================================================ */

:root {
  --ink: #16130e;
  --ink-2: #221e16;
  --ink-3: #2e2920;
  --gold: #c29a4a;
  --gold-deep: #9a7a2f;
  --gold-light: #e9d5a0;
  --gold-pale: #f4ead2;
  --paper: #f7f5f0;
  --card: #ffffff;
  --text: #24211a;
  --muted: #726c5e;
  --line: #e4dfd2;
  --wa: #1fae54;
  --shadow-sm: 0 1px 3px rgba(22, 19, 14, .08);
  --shadow-md: 0 10px 30px -12px rgba(22, 19, 14, .22);
  --shadow-lg: 0 24px 60px -20px rgba(22, 19, 14, .35);
  --radius: 10px;
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------- Tipografía ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: var(--ink);
  box-shadow: 0 6px 18px -6px rgba(154, 122, 47, .55);
}
.btn-gold:hover { box-shadow: 0 10px 26px -6px rgba(154, 122, 47, .65); }

.btn-dark { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-3); }

.btn-outline { border-color: var(--gold); color: var(--gold-light); background: transparent; }
.btn-outline:hover { background: rgba(194, 154, 74, .12); }

.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: var(--ink); color: var(--gold-light); }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #189447; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(22, 19, 14, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(194, 154, 74, .28);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .14em;
  color: var(--gold-light);
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(233, 213, 160, .65);
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav a, .main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: #efe9da;
  font-size: 14.5px;
  font-weight: 500;
  background: none;
  border: none;
  position: relative;
}
.main-nav > li > a::after, .main-nav > li > .nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav > li:hover > a::after,
.main-nav > li:hover > .nav-link::after,
.main-nav > li > a[aria-current="page"]::after { transform: scaleX(1); }

.caret { width: 8px; height: 8px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg) translateY(-2px); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 8px;
  min-width: 230px;
  background: var(--ink-2);
  border: 1px solid rgba(194, 154, 74, .3);
  border-radius: 8px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.main-nav li:hover > .dropdown,
.main-nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: #efe9da;
}
.dropdown a:hover { background: rgba(194, 154, 74, .14); color: var(--gold-light); }
.dropdown a .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }

.nav-cta { margin-left: 10px; padding: 11px 22px !important; }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(194, 154, 74, .4);
  border-radius: 6px;
  padding: 9px 11px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--gold-light); margin: 4px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ---------- Hero (portada) ---------- */
.hero {
  position: relative;
  min-height: calc(92vh - var(--header-h));
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
  color: #f4efe3;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease;
}
.hero-slide.active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.12) translate(1.5%, 1%); }
  to   { transform: scale(1.0) translate(0, 0); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(22, 19, 14, .93) 18%, rgba(22, 19, 14, .62) 52%, rgba(22, 19, 14, .28) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 72px 0; }
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }
.hero h1 {
  color: #f7f2e4;
  font-size: clamp(38px, 6vw, 66px);
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(115deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 17.5px;
  color: rgba(244, 239, 227, .82);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(194, 154, 74, .35);
  max-width: 760px;
}
.hero-stat { padding: 18px 34px 0 0; margin-right: 34px; }
.hero-stat strong {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold-light);
  display: block;
}
.hero-stat span { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244, 239, 227, .6); }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: .8;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.2s ease infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }

/* ---------- Page hero (interiores) ---------- */
.page-hero {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M60 0v120M0 60h120' stroke='%23c29a4a' stroke-opacity='.06'/%3E%3C/svg%3E");
  color: #f4efe3;
  padding: 72px 0 60px;
  border-bottom: 3px solid var(--gold);
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .eyebrow::before { background: var(--gold-light); }
.page-hero h1 { color: #f7f2e4; font-size: clamp(30px, 4.6vw, 48px); }
.page-hero p { color: rgba(244, 239, 227, .78); max-width: 62ch; margin-top: 12px; }

/* ---------- Tarjetas de propiedad ---------- */
.grid-props {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.prop-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  display: flex;
  flex-direction: column;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.prop-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.prop-card:hover .prop-media img { transform: scale(1.06); }
.prop-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; }
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
}
.badge-venta { background: var(--gold); color: var(--ink); }
.badge-renta { background: var(--ink); color: var(--gold-light); border: 1px solid var(--gold); }
.badge-tipo { background: rgba(255, 255, 255, .92); color: var(--ink); }

.prop-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prop-price {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
}
.prop-price small { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.prop-title { font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.prop-loc { display: flex; gap: 7px; align-items: center; font-size: 13.5px; color: var(--muted); }
.prop-loc svg { flex: none; }

.prop-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text);
}
.spec { display: inline-flex; align-items: center; gap: 7px; }
.spec svg { color: var(--gold-deep); }

/* ---------- Catálogo: mapa + filtros ---------- */
.catalog-map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
#mapa, #mapa-detalle, #mapa-oficina { height: 520px; width: 100%; background: #e8e4da; z-index: 1; }
#mapa-detalle { height: 380px; }
#mapa-oficina { height: 320px; }
.map-hint {
  position: absolute;
  z-index: 500;
  bottom: 14px;
  left: 14px;
  background: rgba(22, 19, 14, .88);
  color: var(--gold-light);
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(194, 154, 74, .4);
  pointer-events: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 34px 0 26px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.chip.active {
  background: var(--ink);
  color: var(--gold-light);
  border-color: var(--ink);
}
.filters .count { margin-left: auto; font-size: 13.5px; color: var(--muted); }

/* Popup del mapa */
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold);
  padding: 0;
  overflow: hidden;
}
.leaflet-popup-content { margin: 0; width: 240px !important; font-family: var(--font-body); }
.map-pop img { width: 100%; height: 120px; object-fit: cover; }
.map-pop .map-pop-body { padding: 12px 14px 14px; }
.map-pop .map-pop-price { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.map-pop .map-pop-title { font-size: 13px; color: var(--muted); margin: 2px 0 10px; line-height: 1.4; }
.map-pop a { display: inline-block; font-size: 13px; font-weight: 700; color: var(--gold-deep); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }

.pin-arkimia { filter: drop-shadow(0 4px 6px rgba(22, 19, 14, .45)); transition: transform .15s ease; }
.pin-arkimia:hover { transform: scale(1.12); }

/* ---------- Detalle de propiedad ---------- */
.detail-head { padding: 42px 0 26px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--gold-deep); }
.breadcrumb a:hover { text-decoration: underline; }
.detail-title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.detail-title-row h1 { font-size: clamp(26px, 3.6vw, 38px); max-width: 24ch; }
.detail-price { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); color: var(--gold-deep); white-space: nowrap; }
.detail-price small { font-family: var(--font-body); font-size: 15px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: 1fr; gap: 10px; }
.gallery-main {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.gallery-thumbs button {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  transition: border-color .2s;
}
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  padding: 44px 0 80px;
}
.detail-section + .detail-section { margin-top: 40px; }
.detail-section h2 { font-size: 24px; margin-bottom: 18px; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.spec-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.spec-tile svg { color: var(--gold-deep); flex: none; }
.spec-tile strong { display: block; font-size: 15px; color: var(--ink); }
.spec-tile span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.amenity-list { display: flex; flex-wrap: wrap; gap: 10px; }
.amenity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-pale);
  border: 1px solid #e6d5ae;
  color: #6d5620;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 999px;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--ink);
  color: #f0ead9;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(194, 154, 74, .4);
}
.detail-aside h3 { color: var(--gold-light); font-size: 21px; margin-bottom: 6px; }
.detail-aside p { font-size: 14px; color: rgba(240, 234, 217, .75); margin-bottom: 18px; }
.detail-aside .btn { width: 100%; margin-bottom: 10px; }
.aside-contact { border-top: 1px solid rgba(194, 154, 74, .3); margin-top: 14px; padding-top: 16px; font-size: 14px; }
.aside-contact a { color: var(--gold-light); font-weight: 600; }

/* ---------- Secciones portada ---------- */
.band-dark {
  background: var(--ink);
  color: #f0ead9;
  padding: 78px 0;
  position: relative;
  overflow: hidden;
}
.band-dark h2 { color: #f7f2e4; }
.band-dark .eyebrow { color: var(--gold-light); }
.band-dark .eyebrow::before { background: var(--gold-light); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--gold-pale);
  border-radius: 50%;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { font-size: 14.5px; color: var(--muted); }

.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.testimonial {
  background: var(--ink-2);
  border: 1px solid rgba(194, 154, 74, .3);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.testimonial::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.testimonial p { font-size: 15px; color: rgba(240, 234, 217, .85); }
.testimonial footer { margin-top: 16px; font-size: 13px; color: var(--gold-light); letter-spacing: .06em; text-transform: uppercase; }

.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-3) 100%);
  border-top: 1px solid rgba(194, 154, 74, .4);
  border-bottom: 3px solid var(--gold);
  color: #f0ead9;
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: #f7f2e4; font-size: clamp(26px, 4vw, 38px); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(240, 234, 217, .7); margin: 14px auto 30px; max-width: 55ch; }
.cta-band .btn { margin-inline: 6px; }

/* ---------- Directorios (notarios / créditos) ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.dir-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dir-card h3 { font-size: 19px; margin-bottom: 4px; }
.dir-card .dir-sub { font-size: 13.5px; color: var(--gold-deep); font-weight: 600; margin-bottom: 12px; }
.dir-card ul { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.dir-card ul li { display: flex; gap: 9px; align-items: flex-start; }
.dir-card ul svg { color: var(--gold-deep); flex: none; margin-top: 3px; }
.dir-card a { color: var(--ink); font-weight: 600; }
.dir-card a:hover { color: var(--gold-deep); }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 6px 4px 16px;
  max-width: 460px;
  margin-bottom: 30px;
}
.search-bar svg { color: var(--muted); flex: none; }
.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  padding: 12px 4px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gold-pale);
  border: 1px solid #e0cd9e;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #6d5620;
  margin-bottom: 30px;
}
.notice svg { flex: none; margin-top: 2px; }

/* ---------- Noticias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-media { aspect-ratio: 16 / 9; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.news-tag { background: var(--gold-pale); color: #6d5620; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.news-card h3 { font-size: 19px; line-height: 1.3; }
.news-card > .news-body > p { font-size: 14.5px; color: var(--muted); }
.news-card details { margin-top: auto; }
.news-card summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-deep);
  list-style: none;
  padding-top: 6px;
}
.news-card summary::-webkit-details-marker { display: none; }
.news-card summary::after { content: " ↓"; }
.news-card details[open] summary::after { content: " ↑"; }
.news-card details p { font-size: 14px; color: var(--text); padding-top: 10px; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.about-grid .about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.about-media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(233, 213, 160, .55);
  border-radius: 6px;
  pointer-events: none;
}
.about-grid p + p { margin-top: 14px; }
.about-grid p { color: var(--muted); font-size: 15.5px; }
.about-grid strong { color: var(--ink); }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.value-card {
  background: var(--ink-2);
  border: 1px solid rgba(194, 154, 74, .3);
  border-radius: var(--radius);
  padding: 26px;
}
.value-card h3 { color: var(--gold-light); font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: rgba(240, 234, 217, .72); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: paso; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  counter-increment: paso;
}
.step::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: start; }
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.form-card h2 { font-size: 26px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--paper);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 154, 74, .18);
}
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.contact-info { display: grid; gap: 20px; }
.info-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-tile .icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--gold-pale); color: var(--gold-deep); border-radius: 50%; }
.info-tile h3 { font-size: 16px; margin-bottom: 3px; }
.info-tile p, .info-tile a { font-size: 14.5px; color: var(--muted); }
.info-tile a:hover { color: var(--gold-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(240, 234, 217, .75);
  border-top: 3px solid var(--gold);
  padding: 64px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-grid h4 {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 16px;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-grid ul { display: grid; gap: 9px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand img { height: 84px; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; font-size: 13.5px; color: rgba(240, 234, 217, .6); }
.footer-bottom {
  border-top: 1px solid rgba(194, 154, 74, .25);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(240, 234, 217, .5);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 26px -6px rgba(31, 174, 84, .6);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(31, 174, 84, .5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .about-grid, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(194, 154, 74, .35);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 5%;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav > li > a, .main-nav > li > .nav-link { width: 100%; padding: 14px 6px; font-size: 16px; justify-content: space-between; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--gold);
    border-radius: 0;
    margin: 0 0 8px 12px;
    display: none;
  }
  .main-nav li.open-sub > .dropdown { display: block; }
  .nav-cta { margin: 12px 6px; }
  #mapa { height: 400px; }
  .section { padding: 64px 0; }
  .hero-stat { padding-right: 22px; margin-right: 22px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .brand-name { display: none; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-slide.active { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
