/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --blue:       #156082;
  --blue-dark:  #0e4258;
  --blue-light: #4a92ae;
  --blue-pale:  #e7f0f3;
  --mint:       #b8e8d0;
  --mint-dark:  #6fc79c;
  --mint-pale:  #eef9f3;
  --grey:       #7f7f7f;
  --grey-light: #f3f5f6;
  --grey-line:  #e2e6e8;
  --ink:        #16262c;
  --ink-soft:   #33454c;
  --paper:      #ffffff;

  --serif: "Sora", "Manrope", sans-serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance; line-height: 1.15; letter-spacing: -0.015em;
  font-family: var(--serif); color: var(--ink); font-weight: 600;
}
ul { list-style: none; padding: 0; }
::selection { background: var(--blue); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

.container-narrow { max-width: 880px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section { position: relative; padding-block: clamp(3.6rem, 8vw, 6.5rem); }
.section-alt { background: var(--grey-light); }

/* Dark variant — used to visually set the patrimonial section apart */
.section-dark {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 130%);
}
.section-dark .section-title { color: var(--paper); }
.section-dark .section-subtitle,
.section-dark .section-subtitle em { color: var(--mint); }
.section-dark .section-lede { color: rgba(255,255,255,0.72); }

/* Vertical image list — patrimonial services (deliberately different from the card grid) */
.patrimonial-list { display: flex; flex-direction: column; gap: 1rem; }
.patrimonial-item {
  display: flex; flex-direction: column; gap: 1.1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  padding: 1.3rem;
  transition: transform .5s var(--ease-soft), border-color .5s var(--ease-soft), background-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
@media (min-width: 720px) {
  .patrimonial-item { width: 42%; }
  .patrimonial-item:not(.is-reverse) { margin-right: auto; }
  .patrimonial-item.is-reverse { margin-left: auto; }
}
.patrimonial-item:hover {
  transform: translateY(-4px);
  border-color: transparent;
  background: rgba(255,255,255,0.09);
  box-shadow: 0 30px 60px -24px rgba(6,18,24,0.55);
}
.patrimonial-media { width: 100%; border-radius: 16px; overflow: clip; aspect-ratio: 16/10; }
.patrimonial-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.patrimonial-item:hover .patrimonial-media img { transform: scale(1.06); }
.patrimonial-body { padding: 0 .3rem .3rem; }
.patrimonial-title { font-size: 1.3rem; color: var(--paper); margin-bottom: .5rem; }
.patrimonial-desc { color: rgba(255,255,255,0.72); font-size: .95rem; margin-bottom: 1rem; }
.patrimonial-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 700; color: var(--mint); }
.patrimonial-link::after { content: "→"; transition: transform .3s var(--ease-out); }
.patrimonial-item:hover .patrimonial-link::after { transform: translateX(4px); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans);
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--mint-dark); }
.section-head.is-center .eyebrow::before { display: none; }

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .9rem; }
.section-title em { font-style: normal; color: var(--blue); }
.section-subtitle {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  color: var(--blue);
  max-width: 42rem;
  margin-bottom: .6rem;
}
.section-subtitle em { font-style: normal; color: var(--blue); }
.section-head.is-center .section-subtitle { margin-inline: auto; }
.section-lede { font-size: 1.04rem; color: var(--grey); max-width: 42rem; }
.section-head.is-center .section-lede { margin-inline: auto; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.85rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .93rem;
  letter-spacing: .01em;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background-color .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-primary { background: var(--blue); color: var(--paper); box-shadow: 0 10px 24px -8px rgba(21,96,130,0.45); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 16px 32px -8px rgba(21,96,130,0.5); }
.btn-mint { background: var(--mint); color: var(--blue-dark); box-shadow: 0 10px 24px -10px rgba(111,199,156,0.6); }
.btn-mint:hover { background: var(--mint-dark); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--grey-line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: .65rem 1.3rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* =============================================================
   5. Nav + mega menu
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding-block: 1.25rem;
  transition: background-color .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  padding-block: .7rem;
  box-shadow: 0 1px 0 var(--grey-line), 0 12px 30px -20px rgba(22,38,44,0.25);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.brand { position: relative; display: inline-flex; align-items: center; }
.brand-logo {
  height: 82px; width: auto;
  position: relative; z-index: 1;
  transition: height .35s var(--ease-out), opacity .3s var(--ease-out);
}
.nav.is-scrolled .brand-logo { height: 56px; }
.brand-logo-color {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  opacity: 0;
}
.nav.is-scrolled .brand-logo-white { opacity: 0; }
.nav.is-scrolled .brand-logo-color { opacity: 1; }

/* Home hero: show the color logo (not white) on the soft chip backdrop so it
   stays legible over the blue hero image before the nav solidifies on scroll. */
.brand::before {
  content: "";
  position: absolute;
  inset: -.6rem -1.1rem;
  background: var(--paper);
  border-radius: 999px;
  box-shadow: 0 12px 26px -12px rgba(14,66,88,0.35);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.nav--home:not(.is-scrolled) .brand::before { opacity: 1; }
.nav--home:not(.is-scrolled) .brand-logo-white { opacity: 0; }
.nav--home:not(.is-scrolled) .brand-logo-color { opacity: 1; }

/* Mobile menu open: panel behind the header turns white, so force the color logo */
html.nav-open .brand::before { opacity: 1; }
html.nav-open .brand-logo-white { opacity: 0; }
html.nav-open .brand-logo-color { opacity: 1; }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: .35rem;
  padding: .6rem 0; font-size: .95rem; font-weight: 600; color: var(--paper);
  text-shadow: 0 1px 6px rgba(14,66,88,0.35);
  transition: color .3s var(--ease-out), text-shadow .3s var(--ease-out);
}
.nav-link:hover, .nav-item.is-open .nav-link { color: var(--mint); }
.nav.is-scrolled .nav-link { color: var(--ink-soft); text-shadow: none; }
.nav.is-scrolled .nav-link:hover, .nav.is-scrolled .nav-item.is-open .nav-link { color: var(--blue); }
.nav-link .chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .3s var(--ease-out); margin-top: -3px; }
.nav-item.is-open .nav-link .chev { transform: rotate(-135deg); margin-top: 3px; }

.mega {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 10px);
  min-width: 460px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(22,38,44,0.25), 0 0 0 1px var(--grey-line);
  padding: .6rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .3rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega-item {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1rem 1.1rem; border-radius: 12px;
  transition: background-color .25s var(--ease-out);
}
.mega-item:hover { background: var(--grey-light); }
.mega-item strong { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); font-weight: 600; }
.mega-item span { font-size: .85rem; color: var(--grey); line-height: 1.5; }

.nav-actions { display: flex; align-items: center; gap: .7rem; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .8rem; font-weight: 700; letter-spacing: .03em;
  text-shadow: 0 1px 6px rgba(14,66,88,0.35);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), text-shadow .3s var(--ease-out);
}
.lang-toggle:hover { border-color: var(--mint); color: var(--mint); }
.lang-icon { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; flex-shrink: 0; }
.nav.is-scrolled .lang-toggle, html.nav-open .lang-toggle {
  border-color: var(--grey-line); color: var(--ink-soft); text-shadow: none;
}
.nav.is-scrolled .lang-toggle:hover, html.nav-open .lang-toggle:hover { border-color: var(--blue); color: var(--blue); }

.nav-burger {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  transition: border-color .3s var(--ease-out);
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav.is-scrolled .nav-burger, html.nav-open .nav-burger { border-color: var(--grey-line); }
.nav-burger-lines { position: relative; width: 18px; height: 12px; }
.nav-burger-lines span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--paper);
  transition: transform .35s var(--ease-out), opacity .25s, background-color .3s var(--ease-out);
}
.nav.is-scrolled .nav-burger-lines span, html.nav-open .nav-burger-lines span { background: var(--ink); }
.nav-burger-lines span:nth-child(1) { top: 0; }
.nav-burger-lines span:nth-child(2) { top: 50%; margin-top: -.75px; }
.nav-burger-lines span:nth-child(3) { bottom: 0; }
.nav-open .nav-burger-lines span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.nav-open .nav-burger-lines span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger-lines span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--paper); color: var(--ink);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
  padding: 6.5rem 1.5rem 3rem;
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile-group { border-bottom: 1px solid var(--grey-line); padding-block: .4rem; }
.nav-mobile-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
}
.nav-mobile-trigger .chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.nav-mobile-group.is-open .nav-mobile-trigger .chev { transform: rotate(-135deg); }
.nav-mobile-panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.nav-mobile-group.is-open .nav-mobile-panel { max-height: 260px; }
.nav-mobile-panel a { display: block; padding: .7rem 0 .7rem 1rem; color: var(--grey); font-size: 1rem; border-left: 2px solid var(--grey-line); }
.nav-mobile-panel a:hover { color: var(--blue); border-color: var(--blue); }
.nav-mobile-direct { display: block; padding: 1rem 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; border-bottom: 1px solid var(--grey-line); }
.nav-mobile .btn { margin-top: 1.6rem; }

/* =============================================================
   6. Breadcrumb banner (inner pages)
   ============================================================= */
.page-banner {
  position: relative; overflow: clip;
  padding-block: clamp(7.5rem, 14vw, 10rem) clamp(3.5rem, 7vw, 5rem);
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 62%, var(--blue-light) 100%);
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 85% 0%, rgba(184,232,208,0.28), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(184,232,208,0.14), transparent 70%);
}
.page-banner-inner { position: relative; z-index: 1; }
.page-banner .eyebrow { color: var(--mint); }
.page-banner .eyebrow::before { background: var(--mint); }
.page-banner h1 { color: var(--paper); font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 24ch; }
.page-banner p { color: rgba(255,255,255,0.82); max-width: 40rem; margin-top: .9rem; font-size: 1.04rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: rgba(255,255,255,0.65); margin-bottom: 1.2rem; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--mint); }

/* =============================================================
   7. Hero (home)
   ============================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: ambientZoom 32s ease-in-out infinite; }
@keyframes ambientZoom {
  0%, 100% { transform: scale(1.04) translate3d(0,0,0); }
  50%      { transform: scale(1.12) translate3d(-1%, -1%, 0); }
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,66,88,.82) 0%, rgba(21,96,130,.72) 40%, rgba(14,66,88,.92) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(7rem, 14vw, 9rem) 4rem; max-width: 58rem; margin-inline: auto; text-align: center; }
.hero-title { color: var(--paper); line-height: 1.15; }
.hero-title-line { display: block; white-space: nowrap; }
.hero-title-line--1 { font-size: clamp(1.5rem, 7.6vw, 4.45rem); }
.hero-title-line--2 {
  font-size: clamp(.75rem, 3vw, 1.6rem);
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  margin-top: 1em;
}
.hero-title-highlight {
  background: var(--mint);
  color: var(--blue-dark);
  padding: .02em .22em;
  border-radius: .16em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.2rem; margin-bottom: 2.4rem; }

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 2rem; z-index: 1; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,0.65); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
}
.hero-scroll-cue span { width: 1px; height: 32px; background: linear-gradient(180deg, rgba(255,255,255,.8), transparent); animation: scrollCue 2.4s ease-in-out infinite; }
@keyframes scrollCue { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* =============================================================
   8. Cards — services / patrimonial grids
   ============================================================= */
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--grey-line);
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column; gap: .9rem;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .5s var(--ease-soft);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -24px rgba(21,96,130,0.3);
  border-color: transparent;
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--mint-pale);
  display: grid; place-items: center;
  color: var(--blue);
  transition: background-color .4s var(--ease-out), transform .4s var(--ease-out);
}
.card:hover .card-icon { background: var(--mint); transform: scale(1.06) rotate(-4deg); }
.card-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.card-num {
  position: absolute; top: 1.5rem; right: 1.6rem;
  font-family: var(--serif); font-weight: 600; font-size: .85rem; color: var(--grey-line);
}
.card-title { font-size: 1.2rem; }
.card-desc { font-size: .93rem; color: var(--grey); flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 700; color: var(--blue); }
.card-link::after { content: "→"; transition: transform .3s var(--ease-out); }

/* Service detail page (asesoria-inmobiliaria / asesoria-patrimonial) */
.section-head .card-num, .service-detail .card-num { position: static; display: block; margin-bottom: .4rem; }
.service-detail { max-width: 46rem; margin-inline: auto; text-align: center; }
.service-detail .card-icon { margin-inline: auto; width: 72px; height: 72px; }
.service-detail .card-icon svg { width: 34px; height: 34px; }
.service-detail .section-title { margin-bottom: .6rem; }
.service-detail .section-lede { margin-bottom: 1.6rem; margin-inline: auto; }
.card-link:hover::after { transform: translateX(4px); }

/* Photo variant (nosotros / blog thumbs already styled separately) */
.card-photo { position: relative; margin: -1.8rem -1.6rem .2rem; border-radius: 18px 18px 0 0; overflow: hidden; aspect-ratio: 4/3; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.card:hover .card-photo img { transform: scale(1.08); }

/* =============================================================
   9. Testimonials
   ============================================================= */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
@media (min-width: 860px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card {
  background: var(--paper); border: 1px solid var(--grey-line); border-radius: 20px;
  padding: 2rem 1.8rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.testi-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -26px rgba(21,96,130,0.28); }
.testi-mark { font-family: var(--serif); font-size: 2.6rem; color: var(--mint-dark); line-height: 1; }
.testi-quote { font-size: 1rem; color: var(--ink-soft); flex: 1; }
.testi-person { display: flex; align-items: center; gap: .8rem; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-name { font-weight: 700; color: var(--ink); font-size: .92rem; }
.testi-role { font-size: .8rem; color: var(--grey); }

/* =============================================================
   10. Blog / noticias
   ============================================================= */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--grey-line); border-radius: 18px; overflow: hidden;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .5s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -26px rgba(21,96,130,0.25); border-color: transparent; }
.blog-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.blog-card:hover .blog-thumb img { transform: scale(1.08); }
.blog-tag {
  position: absolute; top: .9rem; left: .9rem;
  background: var(--paper); color: var(--blue);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px;
}
.blog-body { padding: 1.4rem 1.4rem 1.7rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.blog-date { font-size: .78rem; font-weight: 600; color: var(--grey); }
.blog-title { font-size: 1.18rem; }
.blog-excerpt { color: var(--grey); font-size: .92rem; }

/* =============================================================
   11. Cintilla — thin banner
   ============================================================= */
.cintilla {
  position: relative; overflow: clip;
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  padding-block: 1.9rem;
}
.cintilla::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 140% at 90% 50%, rgba(184,232,208,0.22), transparent 70%);
}
.cintilla-inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.cintilla-title {
  color: var(--paper); font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  margin: 0;
}
.cintilla-title strong { color: var(--mint); font-weight: 600; }

/* =============================================================
   12. Stats (nosotros)
   ============================================================= */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 1.6rem 1rem; border-radius: 18px; background: var(--paper); border: 1px solid var(--grey-line); }
.stat-num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.6rem); color: var(--blue); font-weight: 700; }
.stat-label { font-size: .85rem; color: var(--grey); margin-top: .3rem; }

/* Values grid */
.values { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value-card { padding: 1.6rem; border-radius: 16px; background: var(--grey-light); }
.value-card .card-icon { margin-bottom: .8rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.value-card p { font-size: .88rem; color: var(--grey); }

/* Split image/text (nosotros) */
.split { display: grid; grid-template-columns: 1fr; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-media { border-radius: 22px; overflow: clip; aspect-ratio: 4/3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split.is-reverse .split-media { order: 2; }
@media (min-width: 900px) { .split.is-reverse .split-media { order: 2; } .split.is-reverse .split-text { order: 1; } }
.split-text p + p { margin-top: .9rem; }

/* =============================================================
   13. Contact page
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.6rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

.contact-info-card { background: var(--blue-dark); color: var(--paper); border-radius: 22px; padding: clamp(1.8rem, 4vw, 2.6rem); }
.contact-info-card h3 { color: var(--paper); font-size: 1.3rem; margin-bottom: 1.4rem; }
.contact-row { display: flex; align-items: flex-start; gap: .9rem; padding-block: .9rem; border-top: 1px solid rgba(255,255,255,0.14); }
.contact-row:first-of-type { border-top: none; }
.contact-row .card-icon { background: rgba(184,232,208,0.16); color: var(--mint); flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; }
.contact-row .card-icon svg { width: 20px; height: 20px; }
.contact-row div a, .contact-row div span { color: rgba(255,255,255,0.86); font-size: .93rem; }
.contact-row div a:hover { color: var(--mint); }
.contact-row strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mint); margin-bottom: .2rem; }
.contact-social { display: flex; gap: .7rem; margin-top: 1.6rem; }
.contact-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); display: grid; place-items: center; transition: border-color .3s, color .3s, background-color .3s; }
.contact-social a:hover { border-color: var(--mint); background: rgba(184,232,208,0.12); color: var(--mint); }
.contact-social svg { width: 18px; height: 18px; fill: currentColor; }

.form-card { background: var(--paper); border: 1px solid var(--grey-line); border-radius: 22px; padding: clamp(1.8rem, 4vw, 2.6rem); }
.field { position: relative; margin-bottom: 1.2rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--grey-line); border-radius: 12px;
  background: var(--grey-light); color: var(--ink); font-family: var(--sans); font-size: .95rem;
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: var(--paper); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237f7f7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 560px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; gap: 0 1rem; } }

.form-status { display: none; padding: .9rem 1.1rem; border-radius: 12px; font-size: .9rem; margin-bottom: 1.2rem; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--mint-pale); color: var(--blue-dark); }
.form-status.is-error { background: #fbe9e7; color: #a33b2a; }

.contact-form.is-sending .btn[type="submit"] { opacity: .7; pointer-events: none; }

/* =============================================================
   14. Footer
   ============================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,0.75); padding-block: clamp(3.2rem, 6vw, 4.6rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.footer-heading { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 1rem; }
.footer-list { display: flex; flex-direction: column; gap: .6rem; }
.footer-list a, .footer-list span { font-size: .92rem; color: rgba(255,255,255,0.75); }
.footer-list a:hover { color: var(--mint); }
.footer-social { display: flex; gap: .7rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; transition: border-color .3s, color .3s; }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-social a:hover { border-color: var(--mint); color: var(--mint); }
.footer-bottom { margin-top: clamp(2.2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: .78rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--mint); }

/* =============================================================
   15. Floating WhatsApp button
   ============================================================= */
.whatsapp-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(37,211,102,0.7);
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float::before { animation: none; } }

/* =============================================================
   16. Reveal on scroll
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   17. Responsive base tweaks
   ============================================================= */
@media (max-width: 639px) {
  .mega { position: static; transform: none; min-width: 0; box-shadow: none; }
}

/* =============================================================
   18. Reduced motion (only intrusive)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .hero-scroll-cue span { animation: none; }
}
