/* ==========================================================================
   Sistemas Oliver — dirección visual «lujo»
   Se carga después de style.css y redefine tipografía, color, botones y ritmo.
   Paleta: hueso · grafito · piedra, con el dorado solo como acento fino.
   ========================================================================== */

:root {
  --bone: #f5f1ea;
  --bone-2: #ebe5da;
  --sand: #d9cfbf;
  --stone: #8b8376;
  --ink: #1b1a18;
  --graphite: #232120;
  --text: #4a463f;
  --muted: #7a7469;
  --line: rgba(27, 26, 24, .12);
  --line-light: rgba(245, 241, 234, .16);
  --gold: #b2a15b;
  --gold-ink: #7d6f33;
  --gold-50: #efe9da;
  --bg-alt: var(--bone-2);
  --radius: 2px;
  --radius-sm: 2px;
  --shadow: 0 30px 60px -30px rgba(27, 26, 24, .35);
  --shadow-sm: 0 12px 30px -18px rgba(27, 26, 24, .3);
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-family: var(--sans);
}

body { font-family: var(--sans); font-weight: 400; color: var(--text); background: var(--bone); letter-spacing: .005em; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5, .section-title, .hero-title, .cta-title, .page-hero h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; color: var(--ink);
}
h1 em, h2 em, h3 em, .hero-title em, .cta-title em, .statement em { font-style: italic; }
strong { font-weight: 600; }

/* --- Escala tipográfica ---------------------------------------------------- */
.section-title { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.015em; margin-bottom: 1.6rem; }
.section-title.h3 { font-size: clamp(2rem, 3vw, 2.6rem); }
.prose h2.section-title { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -.015em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1.1; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.prose { font-size: 1.02rem; line-height: 1.85; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); font-weight: 500; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { color: var(--gold-ink); }
.lead-muted { color: var(--muted); }
.statement { font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.2; color: var(--ink); margin: 0; letter-spacing: -.005em; }

.kicker { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .3em; color: var(--stone); margin-bottom: 1.4rem; }
.kicker::before { width: 36px; height: 1px; background: var(--gold); }
.kicker-light, .section-dark .kicker, .page-hero .kicker, .contact-section .kicker { color: rgba(245, 241, 234, .7); }

/* --- Botones: rectos, sobrios, el dorado solo al pasar el ratón ----------- */
.btn { border-radius: var(--radius); font-family: var(--sans); font-weight: 600; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; padding: 1.05rem 2rem; transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
.btn:hover { transform: none; }
.btn-lg { padding: 1.2rem 2.4rem; font-size: .76rem; }
.btn-sm { padding: .7rem 1.2rem; font-size: .68rem; }
.btn-gold { background: var(--ink); color: var(--bone); border: 1px solid var(--ink); }
.btn-gold::before { display: none; }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); box-shadow: none; }
.hero .btn-gold, .section-dark .btn-gold, .contact-section .btn-gold, .cta-band .btn-gold, .page-hero .btn-gold, .site-header .btn-gold, .offcanvas .btn-gold {
  background: var(--bone); color: var(--ink); border-color: var(--bone);
}
.hero .btn-gold:hover, .section-dark .btn-gold:hover, .cta-band .btn-gold:hover, .site-header .btn-gold:hover, .offcanvas .btn-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.contact-section .card-form .btn-gold, .card-form .btn-gold { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.contact-section .card-form .btn-gold:hover, .card-form .btn-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn-outline-dark { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--bone); }
.btn-outline-light { border: 1px solid rgba(245, 241, 234, .5); color: var(--bone); }

/* Enlace con línea: alternativa elegante al botón secundario */
.link-line { position: relative; display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: .4rem 0; }
.link-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s cubic-bezier(.7, 0, .2, 1); }
.link-line:hover { color: var(--ink); }
.link-line:hover::after { transform: scaleX(0); transform-origin: left; }
.hero .link-line, .section-dark .link-line, .cta-band .link-line, .contact-section .link-line { color: var(--bone); }
.link-arrow { color: var(--ink); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.section-dark .link-arrow { color: var(--bone); }

/* --- Cabecera ------------------------------------------------------------- */
.topbar { background: transparent; border-bottom: 1px solid var(--line-light); font-size: .72rem; letter-spacing: .06em; }
body:not(.page-home) .topbar { background: var(--ink); }
.topbar i { color: var(--sand); }
.site-header { background: rgba(27, 26, 24, .96); }
body.page-home .site-header.is-scrolled, .site-header.is-scrolled { background: rgba(27, 26, 24, .9); border-bottom: 1px solid var(--line-light); box-shadow: none; }
.navbar-dark .nav-link { font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .22em; color: rgba(245, 241, 234, .82); }
.navbar-dark .nav-link:hover, .navbar-dark .nav-link.active { color: var(--bone); }
@media (min-width: 992px) {
  .navbar-dark .nav-link::after { height: 1px; background: var(--sand); bottom: .35rem; }
}
.site-header .btn-gold { padding: .8rem 1.4rem; font-size: .68rem; background: transparent; color: var(--bone); border-color: rgba(245, 241, 234, .45); }
.site-header .btn-gold:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.dropdown-menu-dark { background: var(--ink); border: 1px solid var(--line-light); border-radius: var(--radius); }
.dropdown-menu-dark .dropdown-item { font-size: .85rem; border-radius: 0; }
.dropdown-menu-dark .dropdown-item:hover, .dropdown-menu-dark .dropdown-item.active { background: transparent; color: var(--sand); }
@media (max-width: 991.98px) { .site-header .offcanvas { background: var(--ink); } }

/* --- Hero ------------------------------------------------------------------ */
.hero { min-height: 100vh; min-height: 100svh; padding: 0; align-items: stretch; flex-direction: column; justify-content: flex-end; background: var(--ink); }
.hero::before { background:
  linear-gradient(180deg, rgba(20, 19, 17, .55) 0%, rgba(20, 19, 17, .1) 30%, rgba(20, 19, 17, .25) 55%, rgba(20, 19, 17, .88) 100%),
  linear-gradient(90deg, rgba(20, 19, 17, .55) 0%, rgba(20, 19, 17, 0) 60%); }
.hero-grain, .marquee, .hero-scroll { display: none !important; }
.hero-inner { position: relative; z-index: 2; padding-top: 11rem; padding-bottom: 3.5rem; }
.hero-copy { width: auto; max-width: 62rem; }
.hero-title { font-size: clamp(3.2rem, 7.4vw, 7.2rem); line-height: .95; letter-spacing: -.02em; margin-bottom: 2rem; color: var(--bone); text-shadow: none; }
.hero-title em { color: var(--sand); }
.hero-copy .hero-lead { width: auto; min-width: 0; max-width: 34rem; font-size: 1.05rem; font-weight: 300; line-height: 1.75; color: rgba(245, 241, 234, .85); margin-bottom: 2.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.4rem; }
.hero-rating { display: none; }

.hero-bar { position: relative; z-index: 2; border-top: 1px solid var(--line-light); }
.hero-bar .hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; margin: 0; max-width: none; width: 100%; background: transparent; border: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hero-bar .hero-facts li { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; padding: 1.6rem 2rem 1.8rem 0; background: transparent; border: 0; }
.hero-bar .hero-facts li + li { padding-left: 2rem; border-left: 1px solid var(--line-light); }
.hero-bar .hero-facts strong { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--bone); min-width: 0; display: inline-flex; align-items: center; gap: .5rem; }
.hero-bar .hero-facts strong span { font-size: inherit; color: inherit; }
.hero-bar .hero-facts > li > span, .hero-bar .hero-facts a > span { font-size: .78rem; letter-spacing: .04em; color: rgba(245, 241, 234, .65); line-height: 1.4; }
.hero-bar .hero-facts a { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; }
.hero-bar .stars { font-size: .9rem; color: var(--sand); }
@media (max-width: 767.98px) {
  .hero-inner { padding-top: 8rem; padding-bottom: 2.5rem; }
  .hero-bar .hero-facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .hero-bar .hero-facts li, .hero-bar .hero-facts li + li { padding: 1.1rem 1rem 1.1rem 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .hero-bar .hero-facts li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line-light); }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* --- Secciones ------------------------------------------------------------ */
.section { padding: clamp(5.5rem, 11vw, 10rem) 0; }
.section-alt { background: var(--bone-2); }
.section-dark { background: var(--ink); color: rgba(245, 241, 234, .7); }
.section-dark .section-title, .section-dark h3 { color: var(--bone); }
.text-light-muted { color: rgba(245, 241, 234, .66); }

/* Presentación */
.section-intro .statement { max-width: 46rem; }
.intro-media { position: relative; overflow: hidden; }
.intro-img-main { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; display: block; }
.intro-text { padding-top: .5rem; }
.intro-text p { color: var(--text); line-height: 1.85; }
.intro-text .link-line { margin-top: 1rem; }
.intro-media-small { margin-top: 3rem; overflow: hidden; }
.intro-media-small img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }

.properties { margin-top: clamp(4rem, 8vw, 7rem); padding: 0; background: transparent; border-radius: 0; }
.properties-intro { max-width: 44rem; color: var(--muted); font-size: .95rem; margin-bottom: 2.2rem; }
.properties-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.properties-list li { background: transparent; border: 0; border-radius: 0; padding: 1.6rem 1.4rem 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.15; color: var(--ink); }
.properties-list li + li { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.properties-list li span { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-ink); }
@media (max-width: 991.98px) {
  .properties-list { grid-template-columns: 1fr 1fr; }
  .properties-list li, .properties-list li + li { padding: 1.4rem 1rem 1.4rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Servicios: lista editorial con imagen que cambia */
.services-intro p { font-weight: 300; line-height: 1.85; }
.service-list { margin: 0; border-top: 1px solid var(--line-light); }
.service-row { display: grid; grid-template-columns: 4rem 1fr 3rem; gap: 1.5rem; align-items: start; padding: 2.2rem 0; border-bottom: 1px solid var(--line-light); text-decoration: none; color: rgba(245, 241, 234, .6); transition: color .4s ease, padding .5s cubic-bezier(.7, 0, .2, 1); }
.service-row-num { font-size: .72rem; font-weight: 600; letter-spacing: .2em; color: var(--sand); padding-top: .9rem; }
.service-row h3 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; margin: 0 0 .8rem; color: rgba(245, 241, 234, .55); transition: color .4s ease; }
.service-row p { margin: 0; font-size: .92rem; font-weight: 300; line-height: 1.7; max-width: 30rem; }
.service-row-arrow { justify-self: end; width: 46px; height: 46px; border: 1px solid var(--line-light); border-radius: 50%; display: grid; place-items: center; color: var(--bone); margin-top: .4rem; transition: background-color .4s ease, color .4s ease, border-color .4s ease, transform .4s ease; }
.service-row:hover, .service-row.is-active { color: rgba(245, 241, 234, .82); }
.service-row:hover h3, .service-row.is-active h3 { color: var(--bone); }
.service-row:hover .service-row-arrow { background: var(--bone); color: var(--ink); border-color: var(--bone); transform: rotate(45deg); }
@media (min-width: 992px) { .service-row:hover { padding-left: 1rem; } }
.service-preview { position: sticky; top: calc(var(--header-h) + 2rem); aspect-ratio: 4 / 5; overflow: hidden; }
.service-preview-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .8s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.service-preview-img.is-active { opacity: 1; transform: none; }
.service-preview-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575.98px) { .service-row { grid-template-columns: 2.4rem 1fr; } .service-row-arrow { display: none; } }

/* Bloque SEO con imágenes */
.stacked-images { gap: 1.2rem; }
.stacked-images img { border-radius: 0; box-shadow: none; }

/* Banda de llamada a la acción: fotografía a sangre */
.cta-band { position: relative; background: var(--ink); padding: clamp(6rem, 12vw, 10rem) 0; overflow: hidden; isolation: isolate; }
.cta-band::before, .cta-band::after { display: none !important; }
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 19, 17, .9) 0%, rgba(20, 19, 17, .6) 55%, rgba(20, 19, 17, .35) 100%); }
.cta-kicker { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(245, 241, 234, .7); opacity: 1; margin-bottom: 1.4rem; }
.cta-title { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.02; color: var(--bone); max-width: 52rem; margin-bottom: 2.6rem; }
.cta-title em { color: var(--sand); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.4rem; }

/* Proyectos: imagen grande con pie */
@media (min-width: 992px) { .works-grid > div:nth-child(even) { padding-top: 6rem; } }
.work-card { display: block; aspect-ratio: auto; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; color: var(--ink); text-decoration: none; }
.work-card::after, .work-card::before { display: none; }
.work-card-img { position: relative; inset: auto; overflow: hidden; aspect-ratio: 4 / 3; }
.works-grid .col-lg-5 .work-card-img { aspect-ratio: 4 / 5; }
.work-card-img img { position: static; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.work-card:hover .work-card-img img { transform: scale(1.04); }
.work-card-body { position: relative; inset: auto; padding: 1.4rem 3.5rem 0 0; color: var(--ink); }
.work-card-body h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.05; color: var(--ink); margin: .5rem 0 0; min-height: 0; display: block; }
.work-cat { font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.work-arrow { position: absolute; right: 0; top: 1.5rem; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background-color .4s ease, color .4s ease, transform .4s ease; }
.work-card:hover .work-arrow { background: var(--ink); color: var(--bone); transform: rotate(45deg); }

/* Galería */
.gallery-filters { justify-content: flex-start; gap: 0 2rem; margin: 0; }
.gallery-filters button { border: 0; border-bottom: 1px solid transparent; background: none; border-radius: 0; padding: .4rem 0; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gallery-filters button:hover { border-color: var(--line); color: var(--ink); }
.gallery-filters button.active { background: none; color: var(--ink); border-color: var(--ink); }
.gallery-grid { gap: 1rem; }
.gallery-item { border-radius: 0; aspect-ratio: 4 / 5; background: var(--bone-2); }
.gallery-item:hover img { filter: none; transform: scale(1.04); }
.gallery-zoom { display: none; }

/* Proceso, opiniones, preguntas */
.process-step { border-top-color: var(--line); }
.process-step::before { background: var(--gold); box-shadow: 0 0 0 5px var(--bone); }
.process-num { font-family: var(--serif); font-size: 3rem; color: var(--gold-ink); -webkit-text-stroke: 0; }
.process-step h3 { font-size: 1.55rem; line-height: 1.1; }
.review-card { background: var(--bone); border-color: var(--line); border-radius: 0; padding: 2.2rem; }
.section-alt .review-card { background: var(--bone); }
.review-card blockquote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.review-avatar { background: var(--bone-2); color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }
.reviews-summary > strong { font-family: var(--serif); font-weight: 400; font-size: 3.6rem; }
.faq-list, .faq-item { border-color: var(--line); }
.faq-item summary { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.25; padding: 1.7rem 0; }
.faq-item summary i { border-color: var(--line); color: var(--ink); }
.faq-item[open] summary i { background: var(--ink); color: var(--bone); }

/* Colaboradores */
.partners { border-top: 1px solid var(--line); background: var(--bone); }
.partners-title { font-family: var(--sans); font-size: .7rem; letter-spacing: .3em; color: var(--stone); }
.partner img { opacity: .55; }

/* Franja de confianza */
.trust-band { background: var(--ink); border-top: 0; }
.trust-grid { border-radius: 0; background: var(--line-light); }
.trust-value { font-family: var(--serif); font-weight: 400; font-size: 2rem; }

/* --- Cabeceras interiores ----------------------------------------------- */
.page-hero { padding: 11rem 0 5rem; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.02em; color: var(--bone); }
.page-hero.has-image::before { background: linear-gradient(180deg, rgba(20, 19, 17, .6) 0%, rgba(20, 19, 17, .35) 45%, rgba(20, 19, 17, .85) 100%); }
.breadcrumb { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.breadcrumb a { color: var(--sand); }

/* --- Tarjetas y formularios ---------------------------------------------- */
.post-card, .card-form, .content-figure, .framed-img, .img-mosaic a, .work-gallery a, .about-img-main { border-radius: 0; }
.content-figure, .framed-img { box-shadow: none; }
.card-form { background: var(--bone); box-shadow: none; border: 1px solid var(--line); }
.form-title { font-family: var(--serif); font-weight: 400; font-size: 2rem; }
.form-title::after { width: 36px; height: 1px; }
.form-label { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.form-control { border: 0; border-bottom: 1px solid rgba(27, 26, 24, .25); border-radius: 0; background: transparent; padding: .75rem 0; }
.form-control:focus { background: transparent; box-shadow: none; border-bottom-color: var(--ink); }
.trust-list { background: transparent; border-left: 1px solid var(--gold); border-radius: 0; }
.lead-gold { border-left-width: 1px; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.aside-call { border-radius: 0; background: var(--ink); }

/* Contacto */
.contact-section { background: var(--ink); }
.contact-section .section-title { color: var(--bone); }
.contact-icon { border-radius: 50%; background: transparent; border: 1px solid var(--line-light); color: var(--sand); }
.contact-list strong { font-size: .68rem; letter-spacing: .2em; color: rgba(245, 241, 234, .55); }
.map-placeholder { border-radius: 0; }

/* --- Pie -------------------------------------------------------------- */
.site-footer { background: #141311; }
.footer-title { font-size: .68rem; letter-spacing: .26em; color: rgba(245, 241, 234, .55); }
.social a { background: transparent; border: 1px solid var(--line-light); }
.social a:hover { background: var(--bone); color: var(--ink); }

/* --- Botones flotantes discretos ---------------------------------------- */
.whatsapp-float { background: var(--ink); color: var(--bone); border: 1px solid rgba(178, 161, 91, .55); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); font-size: 1.35rem; width: 54px; height: 54px; }
.whatsapp-float:hover { background: var(--bone); color: var(--ink); transform: none; }
.to-top { background: transparent; border: 1px solid var(--line); color: var(--ink); backdrop-filter: blur(6px); }
.to-top:hover { background: var(--ink); color: var(--bone); }

/* --- Aviso de cookies más fino ------------------------------------------ */
.cookie-banner { max-width: 760px; border-radius: 0; background: rgba(27, 26, 24, .97); border-color: var(--line-light); }
.cookie-title { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.cookie-banner .btn { padding: .65rem 1.1rem; }
.modal-content { border-radius: 0; }

::selection { background: var(--sand); color: var(--ink); }

/* Hero: detalles de la franja inferior */
.hero-bar .hero-facts strong { gap: .05em; }
.hero-bar .hero-facts strong .stars { font-size: .8rem; color: var(--sand); margin-left: .55rem; gap: .15em; }
.hero .kicker-light { color: rgba(245, 241, 234, .9); }
.hero .kicker-light::before { background: var(--sand); }
.hero::before { background:
  linear-gradient(180deg, rgba(20, 19, 17, .6) 0%, rgba(20, 19, 17, .15) 28%, rgba(20, 19, 17, .35) 50%, rgba(20, 19, 17, .9) 100%),
  linear-gradient(90deg, rgba(20, 19, 17, .7) 0%, rgba(20, 19, 17, .2) 55%, rgba(20, 19, 17, 0) 75%); }

/* El botón de WhatsApp aparece al dejar atrás el hero (no tapa la franja inferior) */
.whatsapp-float { opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease, background-color .3s ease, color .3s ease; }
.whatsapp-float.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* Presentación: la foto principal ocupa toda la altura de la columna de texto */
@media (min-width: 992px) {
  .section-intro .intro-media { height: 100%; }
  .section-intro .intro-img-main { height: 100%; aspect-ratio: auto; min-height: 520px; }
}

/* Bloque SEO: una sola fotografía vertical a toda la columna */
.specialist-media { overflow: hidden; }
.specialist-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }

/* Colaboradores: los logos son JPG con fondo blanco, así que la franja va en blanco para que se fundan */
.partners { background: #fff; }
.partner img { mix-blend-mode: normal; opacity: .6; filter: grayscale(1); }
.partner img:hover { opacity: 1; filter: none; }

/* Títulos pequeños: siempre en sans, no en serif */
.footer-title, .partners-title, .offcanvas-title, .modal-title.h5 { font-family: var(--sans); font-weight: 600; }

/* Botones dentro de textos: texto claro sobre el botón oscuro */
.prose a.btn-gold { color: var(--bone); }
.prose a.btn-gold:hover { color: var(--ink); }

/* Migas de pan legibles sobre la foto */
.breadcrumb { --bs-breadcrumb-divider-color: rgba(245, 241, 234, .5); --bs-breadcrumb-item-active-color: rgba(245, 241, 234, .8); }
.breadcrumb a { color: var(--bone); }

/* ==========================================================================
   Tipografía alineada con el logo
   Títulos en Montserrat (la familia del logotipo) en peso medio, con
   interletra ajustada. El contraste de la segunda línea se hace por peso
   (300) y color, en lugar de con una serif en cursiva.
   ========================================================================== */
:root { --serif: "Montserrat", var(--sans); }

h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5, .section-title, .hero-title, .cta-title, .page-hero h1 { font-weight: 500; letter-spacing: -.03em; }
h1 em, h2 em, h3 em, .hero-title em, .cta-title em, .statement em { font-style: normal; font-weight: 300; }

.hero-title { font-size: clamp(2.5rem, 5.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.04em; }
.hero-title em { color: var(--sand); }
.section-title { font-size: clamp(2.1rem, 3.8vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; }
.section-title.h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.prose h2.section-title { font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.1; }
.prose h2 { font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.25; letter-spacing: -.02em; }
.prose h3 { font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; }
.cta-title { font-size: clamp(1.9rem, 3.6vw, 3.3rem); line-height: 1.12; letter-spacing: -.03em; }
.statement { font-weight: 300; font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.4; letter-spacing: -.02em; }

.hero-bar .hero-facts strong { font-weight: 400; font-size: 1.55rem; letter-spacing: -.02em; }
.properties-list li { font-weight: 500; font-size: 1rem; line-height: 1.35; letter-spacing: -.01em; }
.service-row h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; }
.work-card-body h3 { font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.2; letter-spacing: -.02em; }
.process-num { font-weight: 300; font-size: 2.3rem; letter-spacing: -.04em; }
.process-step h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; }
.review-card blockquote p { font-weight: 300; font-size: 1.05rem; line-height: 1.7; letter-spacing: 0; }
.review-avatar { font-weight: 500; font-size: 1rem; }
.reviews-summary > strong { font-weight: 300; font-size: 3rem; letter-spacing: -.04em; }
.faq-item summary { font-weight: 500; font-size: 1.12rem; line-height: 1.4; letter-spacing: -.01em; }
.trust-value { font-weight: 300; font-size: 1.7rem; letter-spacing: -.03em; }
.form-title { font-weight: 500; font-size: 1.5rem; letter-spacing: -.02em; }
.cookie-title { font-weight: 500; font-size: 1.05rem; }
.lead-gold { font-weight: 300; font-size: 1.25rem; letter-spacing: -.01em; }
.work-spec dd { letter-spacing: 0; }

/* Cortes de línea equilibrados: sin palabras huérfanas en títulos y frases destacadas */
.hero-title-line, .section-title, .cta-title, .statement, .page-hero h1, .service-row h3, .work-card-body h3, .faq-item summary span, .process-step h3 { text-wrap: balance; }
.prose p, .intro-text p, .services-intro p, .hero-lead, .faq-answer p, .review-card blockquote p { text-wrap: pretty; }
.cta-title { max-width: 46rem; }

/* Enlaces a otras páginas: lista editorial con filetes, en lugar de tarjetas y etiquetas */
.other-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); margin: 0; }
.other-links-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.other-links li { border-bottom: 1px solid var(--line); }
.other-links li:nth-child(-n+3) { border-top: 1px solid var(--line); }
.other-links-2 li:nth-child(3) { border-top: 0; }
.other-links a { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1.5rem; height: 100%; padding: 1.6rem 0; color: var(--ink); text-decoration: none; }
.other-links-name { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.other-links-text { grid-column: 1; font-size: .88rem; font-weight: 400; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.other-links .bi { grid-column: 2; grid-row: 1; font-size: .85rem; line-height: 1.5rem; color: var(--stone); transition: transform .4s ease, color .4s ease; }
.other-links a:hover .bi { color: var(--ink); transform: rotate(45deg); }
@media (max-width: 767.98px) {
  .other-links, .other-links-2 { grid-template-columns: 1fr; }
  .other-links li:nth-child(-n+3) { border-top: 0; }
  .other-links li:first-child { border-top: 1px solid var(--line); }
}

/* Enlaces sueltos (página 404) */
.related-links { gap: .6rem 2rem; }
.related-links a { padding: .3rem 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-weight: 500; }
.related-links a:hover { background: none; border-color: var(--ink); }

/* Cabeceras interiores: oscurecer el lado del texto para que migas y título se lean sobre cualquier foto */
.page-hero.has-image::before { background:
  linear-gradient(180deg, rgba(20, 19, 17, .45) 0%, rgba(20, 19, 17, .3) 45%, rgba(20, 19, 17, .8) 100%),
  linear-gradient(90deg, rgba(20, 19, 17, .72) 0%, rgba(20, 19, 17, .4) 50%, rgba(20, 19, 17, .08) 85%); }
.page-hero .breadcrumb a, .page-hero .breadcrumb-item.active { color: rgba(245, 241, 234, .92); }

/* Móvil y tableta: backdrop-filter convierte la cabecera en contenedor del menú lateral (position: fixed),
   que ensancharía la página y se abriría recortado; y el menú debe quedar por encima de su fondo oscuro */
@media (max-width: 991.98px) {
  .site-header, body.page-home .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header:has(.offcanvas.showing, .offcanvas.show) { z-index: 1046; }
}

/* Textos legales: las direcciones web largas no deben ensanchar la página en móvil */
.prose-legal { overflow-wrap: anywhere; }

/* En cabeceras apiladas (móvil) la línea del enlace mide lo que su texto */
.section .link-line { align-self: flex-start; }

/* Proyectos en una columna: separación clara entre el título de uno y la foto del siguiente */
@media (max-width: 991.98px) { .works-grid { --bs-gutter-y: 3.5rem; } }

/* Lista numerada en dos columnas: si el número es impar, el último ocupa toda la fila */
@media (max-width: 991.98px) { .properties-list li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Marcas: una sola fila desde tableta; en móvil, filas centradas sin huecos */
.partners-brands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.partners-brands .partner img { display: block; width: 100%; height: 64px; }
@media (max-width: 767.98px) {
  .partners-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
  .partners-brands .partner { flex: 0 1 calc(50% - 1rem); max-width: 10rem; }
  .partners-brands .partner img { height: 52px; }
}

/* Empresa: misión, visión y valores */
.purpose-row { padding-top: clamp(2.2rem, 4vw, 3.4rem); border-top: 1px solid var(--line); }
.purpose-row + .purpose-row { margin-top: clamp(3rem, 6vw, 5rem); }
.purpose-row:first-child { padding-top: 0; border-top: 0; }
.purpose .statement { margin: 0; text-wrap: pretty; }
.purpose-text { margin-top: 1.8rem; max-width: 46rem; line-height: 1.85; }
.purpose-text p:last-child { margin-bottom: 0; }
.purpose-values-title { margin-bottom: 2rem; }

/* Página de trabajos: si el número es impar, el último va a todo el ancho */
.work-wide .work-card-img { aspect-ratio: 21 / 9; }
