
:root {
  --navy: #16263f;
  --navy-2: #0d1728;
  --gold: #a9854f;
  --gold-dark: #927144;
  --ivory: #f1ece3;
  --paper: #fbfaf7;
  --muted: #626b78;
  --line: rgba(22, 38, 63, .16);
  --shadow: 0 24px 70px rgba(13, 23, 40, .12);
  --radius: 22px;
  --container: 1160px;
  --header-h: 86px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  background: var(--paper);
  color: #172033;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }

/* Foco visible accesible para teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); display: block; }
.h1, h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.05; font-weight: 500; }
h1 { font-size: clamp(2.15rem, 6vw, 5.9rem); letter-spacing: -.04em; margin: .2rem 0 1.1rem; overflow-wrap: break-word; }
h2 { font-size: clamp(1.85rem, 4vw, 3.4rem); letter-spacing: -.03em; margin: 0 0 1rem; overflow-wrap: break-word; }
h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); margin: 0 0 .65rem; overflow-wrap: break-word; }
p { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.2rem; }
li { margin: .35rem 0; }
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-tight { padding: clamp(46px, 7vw, 84px) 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.navbar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.35rem; font-size: .92rem; letter-spacing: .02em; color: var(--navy); }
.nav-links a { opacity: .88; padding: .25rem 0; }
.nav-links a.active, .nav-links a:hover { opacity: 1; color: var(--gold); }
.header-cta { padding: .82rem 1rem; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; font-weight: 700; }
.header-cta:hover { background: var(--gold); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: .35rem .5rem; border-radius: 10px; }

.hero {
  position: relative; overflow: hidden; color: var(--ivory);
  background:
    radial-gradient(circle at 80% 20%, rgba(169, 133, 79, .18), transparent 28%),
    linear-gradient(135deg, #05070b 0%, var(--navy-2) 50%, #05070b 100%);
  min-height: 760px;
  display: flex; align-items: center;
}
.hero::after {
  content: "BS";
  position: absolute; right: -1.2rem; bottom: -4.5rem;
  font-family: var(--serif); font-size: clamp(12rem, 29vw, 31rem); line-height: 1;
  color: rgba(241, 236, 227, .035); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; position: relative; z-index: 1; }
.hero h1, .hero h2 { color: var(--ivory); }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(241, 236, 227, .82); max-width: 740px; }
.hero-logo {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(241, 236, 227, .18);
  border-radius: var(--radius);
  background: rgba(0,0,0,.18);
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
}
.hero-logo img { width: min(440px, 100%); height: auto; margin: auto; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .88rem 1.18rem;
  border-radius: 999px; font-weight: 800; letter-spacing: .02em;
  cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-secondary { border-color: rgba(241,236,227,.36); color: var(--ivory); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1.1rem, 3vw, 2rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow);
}
.card.small-shadow { box-shadow: 0 15px 40px rgba(13, 23, 40, .08); }
.service-card { min-height: 390px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 30px 80px rgba(13, 23, 40, .16); }
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--gold), var(--navy));
}
.service-card .number { font-family: var(--serif); font-size: 5rem; line-height: .9; color: rgba(22,38,63,.09); margin-bottom: .8rem; }

.split { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.panel-dark {
  background:
    linear-gradient(135deg, rgba(169,133,79,.13), transparent 42%),
    var(--navy-2);
  color: rgba(241,236,227,.84);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3.2rem);
  position: sticky; top: calc(var(--header-h) + 30px);
}
.panel-dark h2, .panel-dark h3 { color: var(--ivory); }
.panel-dark img { width: min(300px, 70%); height: auto; margin: 0 auto 2rem; }

.feature-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.feature-list li { padding: 1rem 0 1rem 2.2rem; border-top: 1px solid rgba(22,38,63,.12); position: relative; margin: 0; }
.feature-list li::before { content: "E"; position: absolute; left: 0; top: 1rem; color: var(--gold); font-weight: 800; }
.why-list { display: grid; gap: .85rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.why-list li { padding: 1.05rem 1.15rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0a111f 100%);
  color: rgba(241,236,227,.86); border-radius: calc(var(--radius) + 8px);
  padding: clamp(2rem, 5vw, 4.3rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.cta-band h2 { color: var(--ivory); }

.page-hero {
  background:
    radial-gradient(circle at 85% 12%, rgba(169,133,79,.18), transparent 25%),
    linear-gradient(135deg, var(--navy-2), #05070b);
  color: rgba(241,236,227,.84); padding: clamp(82px, 12vw, 145px) 0 clamp(55px, 9vw, 95px);
}
.page-hero h1 { color: var(--ivory); max-width: 980px; }
.page-hero p { max-width: 850px; font-size: 1.12rem; }

.content { font-size: 1.04rem; }
.content h2 { margin-top: 2.4rem; }
.content h3 { margin-top: 2rem; font-size: 1.6rem; }
.content .intro { font-size: 1.2rem; color: #364055; }
.article-meta { color: var(--muted); font-size: .92rem; margin-bottom: 2rem; }

.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.4rem; }
.blog-card { display: flex; flex-direction: column; min-height: 330px; transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(13, 23, 40, .15); }
.blog-card .date { color: var(--gold); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .7rem; }
.blog-card h3 { font-size: 1.75rem; }
.blog-card .readmore { margin-top: auto; color: var(--gold); font-weight: 800; }

.contact-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 2rem; align-items: start; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 1rem; background: #fff; }
.contact-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center; background: var(--ivory); color: var(--gold); font-weight: 900; }

.form-intro { color: var(--muted); font-size: .96rem; margin: 0 0 .4rem; }
.form label { display: block; font-weight: 800; color: var(--navy); margin: .8rem 0 .25rem; }
.form input, .form textarea {
  width: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: 14px;
  font-family: inherit; font-size: 16px; background: #fff; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169,133,79,.18);
}
.form input::placeholder, .form textarea::placeholder { color: #9aa3ad; }
.form textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: 1.1rem 0; color: var(--muted); font-size: .92rem; font-weight: 400; }
.consent input { width: auto; margin-top: .35rem; flex-shrink: 0; }
.consent a { color: var(--gold); font-weight: 700; text-decoration: underline; }
.form .btn { margin-top: .4rem; }

.site-footer { background: #06080c; color: rgba(241,236,227,.78); padding: 58px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; border-bottom: 1px solid rgba(241,236,227,.16); padding-bottom: 2rem; margin-bottom: 1.5rem; }
.footer-logo { width: min(230px, 60%); height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; }
.footer-links a { color: rgba(241,236,227,.78); }
.footer-links a:hover { color: var(--gold); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .92rem; }

.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; display: grid; place-items: center;
  background: #25d366; color: #fff; border-radius: 50%; box-shadow: 0 18px 45px rgba(0,0,0,.22); font-size: 1.6rem;
  transition: transform .18s ease, bottom .25s ease;
}
.whatsapp-float:hover { transform: scale(1.06); color: #fff; }

.cookie {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 80;
  width: min(calc(100% - 40px), 860px);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 18px;
  padding: 1rem 1.2rem; display: none; align-items: center; justify-content: space-between; gap: 1rem;
}
.cookie.show { display: flex; }
.cookie p { margin: 0; font-size: .9rem; }
.cookie button { border: 0; border-radius: 999px; background: var(--navy); color: #fff; padding: .7rem 1.1rem; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.cookie button:hover { background: var(--navy-2); }
/* El botón de WhatsApp sube cuando el aviso de cookies está visible (evita solapamiento) */
body:has(.cookie.show) .whatsapp-float { bottom: 104px; }

.breadcrumb { color: rgba(241,236,227,.62); font-size: .92rem; margin-bottom: 1.1rem; }
.breadcrumb a:hover { color: var(--gold); }
.logo-watermark { position: relative; overflow: hidden; }
.logo-watermark::after {
  content: ""; position: absolute; width: 300px; height: 300px; right: -80px; bottom: -90px;
  background: url('../img/logo-symbol-dark.svg') center/contain no-repeat; opacity: .035; pointer-events: none;
}

/* ===== Tablet y pantallas medias ===== */
@media (max-width: 1080px) {
  :root { --header-h: 80px; }
  .nav-links { gap: 1rem; }
  .hero { min-height: 660px; }
}

/* ===== Punto de cambio principal: menú móvil ===== */
@media (max-width: 920px) {
  :root { --header-h: 76px; }
  .brand img { height: 46px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: rgba(251,250,247,.98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch; gap: .35rem;
    padding: 1.1rem 20px 1.4rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(13, 23, 40, .12);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a:last-of-type { border-bottom: 0; }
  .header-cta { width: 100%; text-align: center; justify-content: center; margin-top: .5rem; border-bottom: 1px solid var(--gold) !important; }
  .hero { min-height: auto; padding: 70px 0; }
  .hero-grid, .grid-2, .grid-3, .split, .contact-grid, .footer-grid, .cta-band { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(360px, 80%); }
  .panel-dark { position: static; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { text-align: center; justify-items: center; }
  .footer-links { justify-content: center; }
  .footer-meta { justify-content: center; text-align: center; }
  .cta-band { text-align: left; }
  .cta-band .btn { justify-self: start; }
}

/* ===== Móvil ===== */
@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .actions { flex-direction: column; }
  .actions .btn, .cta-band .btn, .form .btn { width: 100%; }
  .card { padding: 1.25rem; }
  .service-card { min-height: 0; }
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie button { width: 100%; }
  body:has(.cookie.show) .whatsapp-float { bottom: 150px; }
  .footer-meta { font-size: .85rem; }
}

/* ===== Pantallas muy pequeñas ===== */
@media (max-width: 380px) {
  .hero { padding: 56px 0; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 1.4rem; }
}

/* ===== Respeta la preferencia de movimiento reducido ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn:hover, .service-card:hover, .blog-card:hover, .whatsapp-float:hover { transform: none; }
}

/* ===== Fotografías de contenido ===== */
.media {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 14px; background: var(--ivory); margin-bottom: 1.5rem;
}
.panel-dark img.panel-photo {
  width: 100%; max-width: none; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 16px; margin: 0 0 1.6rem;
}

/* ===== Mapa de Google Maps ===== */
.map-section p { max-width: 720px; }
.map-embed {
  margin-top: 1.6rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); line-height: 0;
}
.map-embed iframe { width: 100%; height: 460px; border: 0; display: block; }
@media (max-width: 560px) { .map-embed iframe { height: 340px; } }
