﻿/* ===== CSS VARIABLES ===== */
:root {
  --navy:    #050812;
  --navy2:   #0a0f1f;
  --navy3:   #0d1425;
  --gold:    #c9a84c;
  --gold2:   #e8c96a;
  --silver:  #6b7c9a;
  --light:   #a8b3cc;
  --white:   #e8ecf4;
  --card:    rgba(10,15,31,0.6);
  --border:  rgba(201,168,76,0.15);
  --text-primary: #e8ecf4;
  --text-secondary: #a8b3cc;
  --text-muted: #6b7c9a;
  --section-pad-y: 4rem;
  --section-pad-x: max(3.5vw, 1rem);
  --content-max: 1120px;
  /* Texto sobre acentos dorados (--navy en modo claro es superficie clara, no sirve aquí) */
  --on-gold: #0b1020;
}

/* Light mode variables */
body.light-mode {
  --navy:    #f8f9fa;
  --navy2:   #ffffff;
  --navy3:   #f1f3f5;
  --gold:    #8f7328;
  --gold2:   #7a6220;
  --silver:  #42484f;
  --light:   #212529;
  --white:   #212529;
  --card:    rgba(255,255,255,0.8);
  --border:  rgba(143, 115, 40, 0.22);
  --text-primary: #212529;
  --text-secondary: #3e454c;
  --text-muted: #565e66;
  --on-gold: #0b1020;
}

/* ===== GLOBAL STYLES ===== */
*, *::before, *::after { 
  margin:0; 
  padding:0; 
  box-sizing:border-box; 
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }

  .assistant-float-ripple {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .back-to-top {
    transition: none;
  }

  nav {
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }

  nav.nav-hidden {
    transform: translateY(calc(-100% - env(safe-area-inset-top, 0px)));
  }
}

/* ===== NOISE OVERLAY ===== */
body::before {
  content:'';
  position: fixed; 
  inset:0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  transition: opacity 0.35s ease;
}

body.light-mode::before {
  opacity: 0.28;
}

/* ===== NAVIGATION (estilo Hotel Alcynne) ===== */
nav {
  --nav-offset: 4.5rem;
  --hotel-navy: #0f2342;
  --hotel-navy-dark: #0d1425;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  overflow: visible;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

nav.nav-hidden {
  transform: translateY(calc(-100% - env(safe-area-inset-top, 0px)));
  pointer-events: none;
}

nav.nav-open.nav-hidden {
  transform: none;
  pointer-events: auto;
}

nav.scrolled {
  background: transparent;
  box-shadow: none;
}

body.light-mode nav {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

body.light-mode nav.scrolled {
  background: transparent;
  box-shadow: none;
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3.5rem;
  max-width: none;
  margin: 0 auto;
  width: 100%;
  padding: 0.85rem max(2.5rem, env(safe-area-inset-right, 0px)) 0.85rem var(--section-pad-x);
}

.nav-brand {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  text-decoration: none;
  min-width: 0;
}

.nav-brand-logo {
  height: 2.85rem;
  width: auto;
  max-width: 11.5rem;
  object-fit: contain;
  display: block;
}

.nav-phone {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 0 1 auto;
  min-width: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-phone-full {
  display: inline;
}

.nav-phone-short {
  display: none;
}

.nav-phone-icon,
.nav-phone svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke: currentColor;
  flex-shrink: 0;
}

.nav-phone:hover {
  color: #ffffff;
}

body.light-mode .nav-phone {
  color: var(--hotel-navy);
}

body.light-mode .nav-phone:hover {
  color: var(--gold);
}

.nav-actions {
  position: relative;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 2.75rem;
  margin-right: 0;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold2);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--gold2);
}

.nav-link:hover::after {
  width: 100%;
}

body.light-mode .nav-link {
  color: rgba(15, 35, 66, 0.72);
}

body.light-mode .nav-link:hover {
  color: var(--gold);
}

.nav-mobile {
  position: relative;
  z-index: 5;
  display: none;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.dark-mode-toggle,
.lang-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.dark-mode-toggle {
  position: relative;
  overflow: hidden;
  color: var(--gold2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.28);
}

.dark-mode-toggle:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.45);
  transform: rotate(12deg);
}

.dark-mode-toggle svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  position: absolute;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dark-mode-toggle .moon-icon {
  opacity: 0;
  transform: rotate(180deg);
}

.dark-mode-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

body.light-mode .dark-mode-toggle {
  color: var(--hotel-navy);
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.35);
}

body.light-mode .dark-mode-toggle:hover {
  background: rgba(201, 168, 76, 0.2);
}

body.light-mode .dark-mode-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

body.light-mode .dark-mode-toggle .sun-icon {
  opacity: 0;
  transform: rotate(180deg);
}

.lang-toggle {
  width: auto;
  min-width: 2.5rem;
  padding: 0 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.28);
}

.lang-toggle:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.45);
  color: #ffffff;
}

body.light-mode .lang-toggle {
  color: var(--hotel-navy);
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.32);
}

body.light-mode .lang-toggle:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.18);
}

.nav-toggle {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.22);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold2);
}

.nav-toggle-icon {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
}

.nav-toggle-icon-close {
  display: none;
}

nav.nav-open .nav-toggle-icon:not(.nav-toggle-icon-close) {
  display: none;
}

nav.nav-open .nav-toggle-icon-close {
  display: block;
}

body.light-mode .nav-toggle {
  color: var(--hotel-navy);
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.32);
}

.lang-toggle:focus-visible,
.dark-mode-toggle:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.mobile-menu-panel {
  display: none;
  position: fixed;
  top: var(--nav-offset);
  left: 0;
  right: 0;
  z-index: 799;
  max-height: calc(100vh - var(--nav-offset));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(13, 20, 37, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.mobile-menu-panel.is-open:not([hidden]) {
  display: block;
}

body.light-mode .mobile-menu-panel {
  background: rgba(250, 247, 240, 0.98);
  border-top-color: rgba(201, 168, 76, 0.22);
  box-shadow: 0 14px 28px rgba(15, 35, 66, 0.08);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.85rem;
}

.mobile-menu-links .nav-link {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.92);
}

.mobile-menu-links .nav-link::after {
  display: none;
}

body.light-mode .mobile-menu-links .nav-link {
  color: var(--hotel-navy);
}

@media (max-width: 767px) {
  .nav-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    padding-left: 0.75rem;
    padding-right: max(1.85rem, env(safe-area-inset-right, 0px));
  }

  .nav-brand {
    max-width: none;
  }

  .nav-brand-logo {
    height: 2.45rem;
    max-width: 9.5rem;
  }

  .nav-phone-full {
    display: none;
  }

  .nav-phone-short {
    display: inline;
  }

  .nav-phone {
    justify-self: center;
    flex: none;
    font-size: 0.68rem;
    gap: 0.3rem;
    padding: 0 0.35rem;
    max-width: 9.5rem;
    margin: 0;
  }

  .nav-phone span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions {
    display: none !important;
  }

  .nav-mobile {
    display: flex !important;
    justify-self: end;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0;
    margin-right: 0;
  }

  .nav-tools-mobile {
    margin-left: 0;
    margin-right: 0;
  }

  .nav-mobile .dark-mode-toggle,
  .nav-mobile .lang-toggle,
  .nav-toggle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 420px) {
  .nav-phone-full,
  .nav-phone-short {
    display: none;
  }

  .nav-phone {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.28);
    padding: 0;
  }

  .nav-phone-icon,
  .nav-phone svg {
    width: 0.95rem;
    height: 0.95rem;
  }
}

@media (min-width: 768px) {
  .nav-inner {
    gap: 1rem;
  }

  .nav-phone {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex: none;
    max-width: none;
    font-size: 0.92rem;
    gap: 0.45rem;
    padding: 0;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
  }

  .nav-phone-full {
    display: inline;
  }

  .nav-phone-short {
    display: none;
  }

  .nav-actions {
    display: flex !important;
  }

  .nav-tools {
    margin-left: 3.25rem;
    margin-right: 0;
  }

  .nav-mobile {
    display: none !important;
  }

  .mobile-menu-panel,
  .mobile-menu-panel.is-open {
    display: none !important;
  }
}

body.menu-open {
  overflow: hidden;
}

/* Hero (#hero, rombos, logo, scroll) → hero.lock.css (BLOQUEADO) */

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
}

.modal-content {
  background: #111;
  max-width: 500px;
  margin: 8% auto;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-mode .modal-content {
  background: var(--navy2);
  border-color: var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.modal img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.cerrar {
  float: right;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.6;
  color: white;
}

body.light-mode .cerrar {
  color: var(--text-primary);
}

.cerrar:hover {
  opacity: 1;
}

.modal-content h2 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.modal-content #modal-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-content #modal-desc p {
  margin: 0 0 0.85rem;
}

.modal-content #modal-desc p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  /* Sin flex aquí: la imagen tiene altura intrínseca alta y en flex podía dejar #modal-desc sin espacio visible. */
  .modal-content:not(.modal-content--solo-img) {
    margin: 6% auto;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content:not(.modal-content--solo-img) #modal-img {
    max-height: min(40vh, 220px);
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .modal-content:not(.modal-content--solo-img) #modal-desc {
    max-height: min(52vh, 380px);
    overflow-y: auto;
    text-align: left;
    padding-right: 0.4rem;
    margin-top: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content.modal-content--solo-img {
    width: min(94vw, 760px);
    margin: 8vh auto;
  }

  .modal-content.modal-content--solo-img img {
    max-height: min(52vh, 420px);
  }
}

.modal-content.modal-content--solo-img {
  max-width: min(92vw, 760px);
  width: min(92vw, 760px);
  margin: 10vh auto;
  padding: 0.65rem 0.85rem 0.85rem;
}

.modal-content.modal-content--solo-img h2,
.modal-content.modal-content--solo-img #modal-desc {
  display: none;
}

.modal-content.modal-content--solo-img img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(58vh, 480px);
  margin: 0 auto;
  object-fit: contain;
  background: #3a4254;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.modal-content.modal-content--solo-img-lg {
  max-width: min(98vw, 1280px);
  width: min(98vw, 1280px);
  margin: 1.5vh auto;
  padding: 0.65rem;
  max-height: 94vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-content.modal-content--solo-img-lg img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  cursor: zoom-in;
}

.modal-content.modal-content--solo-img-lg img.modal-img--zoomed {
  width: 200%;
  max-width: none;
  cursor: zoom-out;
}

/* ===== COMMON SECTION STYLES ===== */
section { 
  padding: var(--section-pad-y) var(--section-pad-x); 
  position: relative; 
}

.section-tag {
  font-size: .7rem; 
  letter-spacing: .25em; 
  text-transform: uppercase;
  color: var(--gold); 
  margin-bottom: 1rem;
  display: flex; 
  align-items: center; 
  gap: .6rem;
}

.section-tag::before {
  content:''; 
  width:24px; 
  height:1px; 
  background:var(--gold);
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

h2 em { 
  font-style: normal; 
  color: var(--gold); 
}

.section-sub {
  font-size: .98rem; 
  color: var(--text-secondary);
  line-height: 1.8; 
  max-width: 520px; 
  font-weight:300;
}

/* ===== BANNER GRACIAS (entre hero y logros) ===== */
.gracias-banner {
  width: 100%;
  padding: clamp(1.35rem, 3vw, 1.85rem) var(--section-pad-x);
  background: var(--navy);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.gracias-banner-inner {
  max-width: 40rem;
  margin: 0 auto;
  position: relative;
  padding-top: 0.15rem;
}

.gracias-banner-inner::before {
  content: '';
  display: block;
  width: 2.75rem;
  height: 1px;
  margin: 0 auto 0.85rem;
  background: var(--gold);
  opacity: 0.55;
}

.gracias-banner-title {
  margin: 0 0 0.45rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.65rem, 3.6vw, 2.15rem);
  font-weight: 600;
  font-style: italic;
  color: var(--gold2);
  letter-spacing: 0.1em;
}

.gracias-banner-text {
  margin: 0;
  font-size: clamp(0.88rem, 1.9vw, 0.98rem);
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ===== BANDA DE ESTADÍSTICAS (debajo hero) ===== */
section.hero-stats-imgs {
  padding: 1.75rem var(--section-pad-x);
  background: var(--navy3);
  border-top: none;
}

.hero-stats-imgs-header {
  max-width: var(--content-max);
  margin: 0 auto 1.75rem;
}

.hero-stats-imgs-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(1rem, 3vw, 1.75rem);
  row-gap: clamp(1.5rem, 4vw, 2.25rem);
  align-items: start;
}

.hero-stat-img-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.hero-stat-caption {
  margin: 0;
  max-width: 280px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 300;
}

.hero-stat-caption strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.hero-stat-img-btn {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  display: block;
  width: 100%;
  max-width: 260px;
  transition: transform 0.22s ease;
}

.hero-stat-img-btn:hover {
  transform: scale(1.04);
}

.hero-stat-img-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.hero-stat-img-btn img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

@media (max-width: 700px) {
  .hero-stats-imgs-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== CONFIANZA SECTION ===== */
#confianza {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.confianza-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.confianza-header {
  max-width: 680px;
  margin-bottom: 0;
}

.confianza-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.confianza-visual img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
}

.confianza-metricas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.metrica-card {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem 1rem 1.15rem;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.metrica-card.reveal.visible {
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    background 0.25s ease;
}

.metrica-card.reveal.visible:hover,
.metrica-card:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.metrica-card.reveal.visible:hover {
  transform: translateY(-2px) scale(1);
}

.metrica-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.6rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.metrica-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.metrica-card:hover .metrica-icon svg {
  transform: translateY(-1px) scale(1.06);
  stroke: var(--gold2);
}

.metrica-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.05;
}

.metrica-label {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.metrica-num--rating {
  margin-bottom: 0.35rem;
}

.metrica-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  margin-bottom: 0.15rem;
}

.metrica-stars svg {
  width: 13px;
  height: 13px;
  stroke: var(--gold2);
  fill: rgba(201, 168, 76, 0.22);
  stroke-width: 1.8;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.confianza-certificaciones {
  max-width: var(--content-max);
  margin: 0 auto 2rem;
}

.confianza-certificaciones img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.testimonio-card {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.testimonio-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.testimonio-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.testimonio-stars svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold2);
  fill: rgba(201, 168, 76, 0.22);
  stroke-width: 1.8;
}

.testimonio-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 300;
}

.testimonio-author {
  margin: 0.9rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.sectores-block {
  margin-top: 0.25rem;
}

.sectores-header {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.sectores-title {
  margin: 0 0 0.45rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.sectores-sub {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.sectores-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.sector-card {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.1rem 1rem 1rem;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.sector-card:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  transform: translateY(-2px);
}

.sector-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 0.65rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sector-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.85;
}

.sector-name {
  margin: 0 0 0.35rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.sector-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* ===== GALERÍA SECTION ===== */
#galeria {
  background: var(--navy3);
  border-top: 1px solid var(--border);
}

.galeria-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 4vw, 3rem);
  max-width: var(--content-max);
  margin: 0 auto 1.75rem;
}

.galeria-header-text {
  flex: 1;
  min-width: 0;
  max-width: 680px;
}

.galeria-header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.galeria-header-logo img {
  width: clamp(80px, 10vw, 120px);
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
}

.galeria-imagenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.galeria-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.galeria-item--interactive {
  cursor: zoom-in;
  border-radius: 6px;
  transition: opacity 0.22s ease;
}

.galeria-item--interactive:hover {
  opacity: 0.92;
}

.galeria-item--interactive:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: transform 0.22s ease;
}

.galeria-item--interactive:hover img {
  transform: scale(1.03);
}

/* ===== LOGOTIPOS SECTION ===== */
#logotipos {
  background: var(--navy2);
  border-top: 1px solid var(--border);
}

.logotipos-header {
  max-width: 680px;
  margin-bottom: 1.75rem;
}

.logotipos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.logotipo-card {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.logotipo-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  transform: translateY(-2px);
}

.logotipo-img-wrap {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--navy3);
}

.logotipo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logotipo-label {
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* ===== NOSOTROS SECTION ===== */
#nosotros { 
  background: var(--navy2); 
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.nosotros-visual {
  position: relative;
}

.nosotros-img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.nosotros-img img {
  width: 100%;
  height: auto;
  max-height: min(52vw, 520px);
  object-fit: contain;
  object-position: center center;
  display: block;
}

.nosotros-box {
  background:
    linear-gradient(135deg, rgba(201,168,76,.06) 0%, rgba(201,168,76,.02) 100%);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.nosotros-click-hint {
  margin: 0;
  padding: 0 1.5rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 400;
}

body.light-mode .nosotros-click-hint {
  color: var(--text-secondary);
}

.nosotros-box::before {
  content:'';
  position: absolute; 
  top:-1px; 
  left:2rem; 
  right:2rem;
  height:2px; 
  background:var(--gold);
}

.nosotros-icon-grid {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 1.5rem;
  padding: 2rem;
  width: 100%;
}

.icon-card {
  display: flex; 
  flex-direction: column; 
  align-items: center;
  gap: .7rem; 
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  text-align: center;
  transition: border-color .3s, background .3s;
}

.icon-card:hover { 
  border-color: var(--gold); 
  background: rgba(201,168,76,.05); 
}

.icon-card svg { 
  width:32px; 
  height:32px; 
  stroke: var(--gold); 
  fill:none; 
  stroke-width:1.5; 
}

.icon-card--photo-fill {
  padding: 0.4rem;
  gap: 0;
  overflow: hidden;
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  justify-content: center;
  align-items: stretch;
  background: rgba(8, 11, 20, 0.92);
}

body.light-mode .icon-card--photo-fill {
  background: rgba(236, 239, 244, 0.96);
}

.icon-card--photo-fill .icon-card-img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.icon-card--expandable {
  cursor: pointer;
}

.icon-card--expandable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Modal diálogo (Quiénes somos — tarjetas) */
.nosotros-dialogo-modal {
  position: fixed;
  inset: 0;
  z-index: 1115;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.nosotros-dialogo-modal[hidden] {
  display: none !important;
}

.nosotros-dialogo-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, 0.82);
}

body.light-mode .nosotros-dialogo-scrim {
  background: rgba(248, 249, 251, 0.88);
}

.nosotros-dialogo-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: auto;
  background: rgba(12, 16, 28, 0.94);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  text-align: left;
}

body.light-mode .nosotros-dialogo-panel {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

.nosotros-dialogo-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.nosotros-dialogo-close:hover {
  color: var(--gold);
}

.nosotros-dialogo-panel h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  color: var(--gold);
  margin: 0 2.5rem 1.15rem 0;
  line-height: 1.25;
}

.nosotros-dialogo-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  max-height: min(60vh, 480px);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.nosotros-dialogo-body p {
  margin: 0 0 0.95rem;
}

.nosotros-dialogo-body p:last-child {
  margin-bottom: 0;
}

.nosotros-dialogo-body .dialogo-rol {
  color: var(--gold);
  font-weight: 600;
  margin-right: 0.35rem;
}

.nosotros-dialogo-body .dialogo-cierre {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 400;
}

.nosotros-dialogo-cta {
  color: var(--gold);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nosotros-dialogo-cta:hover {
  color: var(--gold2);
}

@media (max-width: 600px) {
  .nosotros-dialogo-body {
    max-height: none;
  }
}

@media (max-width: 768px) {
  #nosotros .nosotros-icon-grid {
    padding: 1rem;
    gap: 0.75rem;
  }

  /* Móvil: tarjetas con fondo elegante + imagen completa */
  #nosotros .icon-card.icon-card--photo-fill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: 0;
    aspect-ratio: 4 / 3;
    background: rgba(8, 11, 20, 0.92);
  }

  body.light-mode #nosotros .icon-card.icon-card--photo-fill {
    background: rgba(236, 239, 244, 0.96);
  }

  #nosotros .icon-card.icon-card--photo-fill:hover {
    background: rgba(12, 16, 28, 0.94);
  }

  body.light-mode #nosotros .icon-card.icon-card--photo-fill:hover {
    background: rgba(228, 232, 238, 0.98);
  }

  #nosotros .icon-card--photo-fill .icon-card-img {
    position: relative;
    inset: unset;
    width: 100%;
    height: 100%;
    max-height: none;
    flex: 1 1 auto;
    object-fit: contain;
    object-position: center center;
  }
}

.nosotros-text h2 { 
  margin-bottom:1.5rem; 
}

.values-list { 
  margin-top: 2rem; 
  display: flex; 
  flex-direction: column; 
  gap: 0.65rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, rgba(201,168,76,.09) 0%, rgba(201,168,76,.03) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}

.values-list::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--gold);
}

body.light-mode .values-list {
  background: linear-gradient(135deg, rgba(143,115,40,.12) 0%, rgba(255,255,255,.85) 100%);
  border-color: rgba(143,115,40,.22);
}

.value-item {
  display: flex; 
  align-items: center; 
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(201,168,76,.12);
  border-left: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  transition: border-color .25s, background .25s, box-shadow .25s;
  cursor: default;
}

body.light-mode .value-item {
  background: rgba(255,255,255,.72);
  border-color: rgba(143,115,40,.16);
}

.value-item:hover {
  border-left-color: var(--gold);
  border-color: rgba(201,168,76,.28);
  background: rgba(201,168,76,.08);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

body.light-mode .value-item:hover {
  background: rgba(255,255,255,.95);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.value-item--expandable {
  cursor: pointer;
}

.value-item--expandable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.value-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease, opacity 0.25s ease, stroke 0.25s ease;
  transform-origin: center;
}

.value-item:hover .value-icon svg {
  transform: translateY(-1px) scale(1.06);
  stroke: var(--gold2);
}

.value-text { 
  font-size: .92rem; 
  color: var(--text-primary); 
  font-weight: 400; 
  line-height: 1.45;
}

/* ===== SERVICIOS SECTION ===== */
#servicios { 
  background: var(--navy3); 
}

.servicios-header { 
  max-width: 600px; 
  margin-bottom: 2.5rem; 
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: var(--content-max);
  margin: 0 auto;
}

.servicio-card {
  background: var(--navy2);
  padding: 0.5rem 0.5rem;
  display: flex; 
  flex-direction: column; 
  gap: 0.4rem;
  cursor: default;
  transition: background .3s;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.servicio-card::after {
  content:'';
  position:absolute; 
  bottom:0; 
  left:0; 
  right:0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}

.servicio-card:hover { 
  background: var(--navy2);
}

.servicio-card:hover::after { 
  transform: scaleX(1); 
}

.serv-img {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.3rem;
}

.serv-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.servicio-card:hover .serv-img img {
  transform: scale(1.05);
}

.serv-icon { 
  margin-bottom:.5rem;
  --icon-size: 32px;
  --icon-stroke: 1.85;
}

.serv-icon svg { 
  width: var(--icon-size);
  height: var(--icon-size);
  stroke:var(--gold); 
  fill:none; 
  stroke-width:var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease, stroke 0.25s ease, filter 0.25s ease;
  transform-origin: center;
}

.servicio-card:hover .serv-icon svg {
  transform: translateY(-1px) scale(1.06);
  stroke: var(--gold2);
  filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.22));
}

.serv-title {
  font-family:'Cormorant Garamond', serif;
  font-size:1.6rem; 
  font-weight:600;
  color: var(--white);
}

.serv-desc { 
  font-size:.95rem; 
  color:var(--silver); 
  line-height:1.6; 
  font-weight:300; 
}

.servicio-card--expandable {
  cursor: pointer;
}

.servicio-card--expandable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.servicio-ver-mas {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* Modal detalle servicio (fondo + panel) */
/* align-items: flex-start + margin auto en el panel: evita que Firefox recorte
   modales altos al centrarlos con flex (responsive / vista móvil). */
.servicio-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.servicio-modal[hidden] {
  display: none !important;
}

.servicio-modal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(14px) saturate(1.05);
  transform: scale(1.06);
}

.servicio-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, 0.82);
}

body.light-mode .servicio-modal-scrim {
  background: rgba(248, 249, 251, 0.88);
}

.servicio-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 940px;
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: auto;
  background: rgba(12, 16, 28, 0.94);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

body.light-mode .servicio-modal-panel {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

.servicio-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.servicio-modal-close:hover {
  color: var(--gold);
}

.servicio-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  padding-top: 0.5rem;
}

.servicio-modal-figure {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

body.light-mode .servicio-modal-figure {
  background: rgba(0, 0, 0, 0.06);
}

/* contain + altura limitada por vista: foto completa sin recorte (cover la cortaba) */
.servicio-modal-figure img {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(65vh, 480px);
  object-fit: contain;
  object-position: center;
}

.servicio-modal-copy h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.servicio-modal-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.servicio-modal-body p + p {
  margin-top: 0.95rem;
}

@media (max-width: 768px) {
  .servicio-modal-layout {
    grid-template-columns: 1fr;
  }

  .servicio-modal-body {
    max-height: none;
  }

  .servicio-modal-figure img {
    max-height: min(58vh, 440px);
  }
}

/* ===== MARCAS SECTION ===== */
#marcas {
  background: var(--navy2);
  text-align: center;
  padding: 5rem 5vw;
}

.marcas-title {
  font-size: .72rem; 
  letter-spacing:.25em; 
  text-transform:uppercase;
  color:var(--silver); 
  margin-bottom:2.5rem;
}

.marcas-full {
  max-width: 660px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 1.2rem;
}

.marcas-full img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ===== FAQ SECTION ===== */
#faq {
  background: var(--navy);
  border-top: 1px solid var(--border);
}

.faq-header {
  max-width: 680px;
  margin-bottom: 1.75rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: var(--content-max);
  margin: 0 auto;
  overflow-anchor: none;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item[open] {
  border-color: rgba(201, 168, 76, 0.45);
  background: rgba(201, 168, 76, 0.06);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--gold);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.faq-item[open] summary::after {
  content: '−';
  border-color: var(--gold);
}

.faq-item summary:hover {
  color: var(--gold2);
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 72ch;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===== CONTACTO SECTION ===== */
#contacto { 
  background: var(--navy3); 
}

.contacto-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  gap: 2rem;
  align-items: start;
  margin-top: 3rem;
}

.contacto-info { 
  display:flex; 
  flex-direction:column; 
  gap:2rem; 
}

.contact-item {
  display:flex; 
  gap:1.2rem; 
  align-items:flex-start;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color .25s;
}

.contact-item:hover { 
  border-color: var(--gold); 
}

a.contact-item--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.contact-item--link:hover .contact-val {
  color: var(--gold2);
}

.contact-icon {
  width:40px; 
  height:40px; 
  flex-shrink:0;
  border: 1px solid var(--border);
  display:flex; 
  align-items:center; 
  justify-content:center;
}

.contact-icon svg { 
  width:18px; 
  height:18px; 
  stroke:var(--gold); 
  fill:none; 
  stroke-width:1.5; 
}

.contact-icon svg.contact-icon-wa {
  width: 20px;
  height: 20px;
  fill: #25D366;
  stroke: none;
}

.contact-label {
  font-size:.68rem; 
  letter-spacing:.18em; 
  text-transform:uppercase;
  color:var(--silver); 
  margin-bottom:.3rem;
}

.contact-val { 
  font-size:.98rem; 
  color:var(--text-primary); 
  font-weight:300; 
}

.contact-val a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-val a:hover {
  color: var(--gold2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== PROCESO / CASOS DE ÉXITO ===== */
#proceso {
  background: var(--navy);
  border-top: 1px solid var(--border);
}

.proceso-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.proceso-pasos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.proceso-paso {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem 1.25rem 1.35rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.proceso-paso.reveal.visible:hover,
.proceso-paso:hover {
  border-color: rgba(201, 168, 76, 0.55);
  transform: translateY(-2px);
}

.proceso-paso-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 300;
  color: rgba(201, 168, 76, 0.35);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.proceso-paso-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.proceso-paso-icon svg {
  width: 28px;
  height: 28px;
}

.proceso-paso-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.55rem;
}

.proceso-paso-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.proceso-casos-wrap {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.proceso-casos-head {
  max-width: 640px;
  margin-bottom: 1.75rem;
}

.proceso-casos-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.proceso-casos-sub {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.proceso-casos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.proceso-caso {
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.proceso-caso.reveal.visible:hover,
.proceso-caso:hover {
  border-color: rgba(201, 168, 76, 0.45);
}

.proceso-caso-img {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--navy2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proceso-caso-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.proceso-caso-body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.proceso-caso-sector {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 0.45rem;
}

.proceso-caso-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.proceso-caso-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.proceso-cta-wrap {
  margin: 2rem 0 0;
  text-align: center;
}

.proceso-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.proceso-cta:hover {
  background: var(--gold2);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .proceso-pasos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .proceso-pasos,
  .proceso-casos-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== LEGAL (anclas desde footer) ===== */
.legal-page-shell {
  padding-top: clamp(5.75rem, 11vw, 7.25rem);
  min-height: calc(100vh - 8rem);
}

.legal-block--page:first-child {
  border-top: none;
}

.legal-back {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
}

.legal-back a {
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.legal-back a:hover {
  text-decoration: underline;
}

.legal-block-meta {
  margin-top: 1.5rem;
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
}

.legal-sub-footer-bar {
  gap: 0.5rem;
}

.legal-sub-footer-bar .footer-copy {
  margin: 0;
}

.legal-sub-footer-links {
  max-width: 40rem;
  line-height: 1.6;
}

.legal-sub-footer-bar .footer-copy a {
  color: var(--silver);
  text-decoration: none;
  transition: color 0.25s;
}

.legal-sub-footer-bar .footer-copy a:hover {
  color: var(--gold);
}

body.light-mode .legal-sub-footer-bar .footer-copy a {
  color: var(--text-secondary);
}

.legal-block {
  background: var(--navy3);
  border-top: 1px solid var(--border);
  padding: 2.75rem 5vw;
}

.legal-block + .legal-block {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

body.light-mode .legal-block {
  background: var(--navy3);
}

.legal-block-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-block-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.15rem;
}

h1.legal-block-title {
  font-size: clamp(1.65rem, 3.5vw, 2rem);
}

.legal-block-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-weight: 300;
}

.legal-block-text:last-child {
  margin-bottom: 0;
}

.legal-block-text a {
  color: var(--gold);
  text-decoration: none;
}

.legal-block-text a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy2);
  border-top: 1px solid var(--border);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(20rem, 2.15fr) max-content max-content minmax(13rem, 1fr);
  column-gap: clamp(1.35rem, 2.4vw, 2.15rem);
  row-gap: 2rem;
  align-items: start;
  padding: 3rem 5vw 2.5rem;
  width: 100%;
}

.footer-col-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  font-weight: 600;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 1.6rem);
  min-width: 0;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.footer-brand .footer-logo:hover,
.footer-brand .footer-logo:focus-visible {
  opacity: 1;
}

.footer-brand .footer-logo:hover .footer-logo-img,
.footer-brand .footer-logo:focus-visible .footer-logo-img {
  opacity: 1;
}

.footer-logo-img {
  height: 168px;
  width: auto;
  max-width: min(260px, 26vw);
  object-fit: contain;
  display: block;
  margin: -28px 0 0;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  letter-spacing: 0.02em;
  word-spacing: normal;
  max-width: 28rem;
  font-weight: 300;
  flex: 1 1 14rem;
  min-width: 12rem;
}

.footer-nav-list,
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-list a {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-nav-list a:hover {
  color: var(--gold);
}

.footer-contact-list a {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--silver);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: color 0.25s;
}

.footer-contact-list a:hover {
  color: var(--gold);
}

.footer-contact-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.45;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-contact-list svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.25s ease, stroke 0.25s ease;
  transform-origin: center;
}

.footer-contact-list a:hover svg {
  transform: translateY(-1px) scale(1.08);
  stroke: var(--gold2);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  padding: 1.35rem 5vw 1.6rem;
  border-top: 1px solid var(--border);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.72rem;
}

.footer-legal a {
  color: var(--silver);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.25s;
}

.footer-legal a:hover {
  color: var(--gold);
}

.footer-legal span {
  color: var(--text-muted);
  user-select: none;
}

.footer-copy {
  margin: 0;
  max-width: 36rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  line-height: 1.55;
}

.footer-dev-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.footer-dev-logo {
  height: 1.75rem;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
}

.footer-dev-text {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.footer-dev-text a {
  color: var(--gold2);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-dev-text a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.light-mode .footer-dev-text a {
  color: #8f7328;
}

body.light-mode .footer-dev-text a:hover {
  color: #5c4a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.light-mode .footer-legal a {
  color: var(--text-secondary);
}

body.light-mode .footer-legal a:hover {
  color: #5c4a1a;
}

body.light-mode .footer-col-title {
  color: #8f7328;
}

body.light-mode .footer-col-title:hover {
  color: #7a6220;
}

body.light-mode .footer-copy {
  color: var(--text-muted);
}

@media (max-width: 1180px) {
  .footer-main {
    grid-template-columns: minmax(16rem, 1.7fr) max-content max-content minmax(12rem, 0.9fr);
    column-gap: 1.35rem;
  }

  .footer-logo-img {
    height: 148px;
    max-width: min(220px, 24vw);
  }

  .footer-tagline {
    min-width: 10rem;
  }
}

@media (max-width: 960px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand-row {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-main {
    padding-bottom: 0.75rem;
  }

  .footer-brand {
    padding-bottom: 2.25rem;
  }

  .footer-brand-row {
    gap: 1rem;
  }

  .footer-logo-img {
    height: 128px;
    max-width: min(168px, 38vw);
    margin-top: -12px;
  }

  .footer-tagline {
    margin-top: 0;
    font-size: 0.84rem;
    line-height: 1.65;
    letter-spacing: 0.02em;
    word-spacing: normal;
    min-width: 0;
  }

  .footer-bottom {
    padding-bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ===== WHATSAPP BUTTON (estilo Hotel Alcynne) ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: max(20px, env(safe-area-inset-right, 0px));
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.55rem;
  padding: 0.3rem 0.95rem 0.3rem 0.3rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.4);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.whatsapp-float-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
}

.whatsapp-float-icon-wrap svg {
  width: 1.05rem;
  height: 1.05rem;
}

.whatsapp-float-label {
  letter-spacing: 0.01em;
}

/* ===== ASISTENTE VIRTUAL (estilo Hotel Alcynne) ===== */
.assistant-widget {
  position: fixed;
  bottom: 20px;
  left: max(20px, env(safe-area-inset-left, 0px));
  z-index: 1000;
  overflow: visible;
}

.assistant-float {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.55rem;
  padding: 0.3rem 0.95rem 0.3rem 0.3rem;
  border: 1.5px solid rgba(232, 201, 109, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #0b1628 0%, #122a45 52%, #0f2342 100%);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(5, 12, 24, 0.42), 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.assistant-float:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(232, 201, 109, 0.85);
  box-shadow: 0 14px 34px rgba(5, 12, 24, 0.5), 0 4px 12px rgba(0, 0, 0, 0.22);
}

.assistant-float-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--gold2);
  color: var(--gold2);
  flex-shrink: 0;
  z-index: 0;
  overflow: visible;
}

.assistant-float-icon-open {
  position: relative;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  display: block;
}

.assistant-float-ripple {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(232, 201, 109, 0.55);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  animation: assistantIconRipple 2.1s ease-out infinite;
}

.assistant-float-ripple--2 {
  animation-delay: 0.7s;
}

.assistant-float-ripple--3 {
  animation-delay: 1.4s;
}

.assistant-float-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  text-align: left;
  line-height: 1.15;
}

.assistant-float-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0;
  line-height: 1;
  white-space: nowrap;
}

.assistant-float-headline::after {
  content: 'Chat';
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}

.assistant-float-subline {
  display: none;
}

.assistant-widget.is-open .assistant-float {
  z-index: 2;
  width: auto;
  height: auto;
  min-width: 3.75rem;
  min-height: 3.75rem;
  padding: 0.55rem;
  justify-content: center;
  gap: 0;
}

.assistant-widget.is-open .assistant-float-copy {
  display: none;
}

.assistant-widget.is-open .assistant-float-icon-wrap {
  width: 3.45rem;
  height: 3.45rem;
  border-color: var(--gold2);
  color: var(--gold2);
}

.assistant-widget.is-open .assistant-float-icon-open {
  width: 2.55rem;
  height: 2.55rem;
}

.assistant-widget.is-open .assistant-float-ripple {
  display: none;
}

.assistant-panel {
  position: absolute;
  bottom: calc(100% + 0.85rem);
  left: 0;
  width: min(22rem, calc(100vw - 2rem));
  height: min(32rem, calc(100vh - 11rem));
  max-height: calc(100dvh - 10rem);
  display: flex;
  flex-direction: column;
  background: #122033;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 1.1rem;
  box-shadow: 0 24px 60px rgba(15, 35, 66, 0.28);
  overflow: hidden;
  overscroll-behavior: contain;
  animation: assistantSlideUp 0.28s ease;
}

body.light-mode .assistant-panel {
  background: var(--navy2);
  border-color: var(--border);
  box-shadow: 0 20px 48px rgba(15, 35, 66, 0.1);
}

body.light-mode .assistant-float {
  background: linear-gradient(135deg, #0d1425 0%, #152238 100%);
  border-color: rgba(201, 168, 76, 0.42);
  box-shadow: 0 10px 24px rgba(13, 20, 37, 0.22);
}

body.light-mode .assistant-float:hover {
  border-color: rgba(201, 168, 76, 0.62);
  box-shadow: 0 12px 28px rgba(13, 20, 37, 0.28);
}

.assistant-panel[hidden] {
  display: none !important;
}

.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(135deg, var(--navy) 0%, #122a45 100%);
  color: #fff;
}

body.light-mode .assistant-header {
  background: linear-gradient(135deg, #0d1425 0%, #152238 100%);
}

.assistant-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.assistant-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.18);
  border: 1px solid rgba(201, 168, 76, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold2);
  flex-shrink: 0;
}

.assistant-avatar svg {
  width: 1.15rem;
  height: 1.15rem;
}

.assistant-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.assistant-brand {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.08em;
  letter-spacing: 0.06em;
  line-height: 1;
  background-image: linear-gradient(
    180deg,
    #ffffff 0%,
    #e8edf2 16%,
    #9aa7b4 38%,
    #f4f7fa 52%,
    #7b8794 76%,
    #c9d2db 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35))
    drop-shadow(0 1px 2px rgba(0, 8, 20, 0.55));
}

.assistant-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
}

.assistant-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
  flex-shrink: 0;
}

.assistant-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.assistant-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.assistant-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.assistant-messages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #0d1828;
}

body.light-mode .assistant-messages {
  background: var(--navy3);
}

.assistant-msg {
  max-width: 92%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.assistant-msg--bot {
  align-self: flex-start;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.16);
  color: #e8edf5;
  border-bottom-left-radius: 4px;
}

body.light-mode .assistant-msg--bot {
  background: rgba(201, 168, 76, 0.07);
  border-color: rgba(201, 168, 76, 0.12);
  color: var(--text-primary);
}

.assistant-msg--bot a {
  color: var(--gold2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.assistant-msg--bot a:hover {
  color: #ffffff;
}

.assistant-msg--bot a.assistant-action-link {
  display: inline-block;
  margin: 0.35rem 0 0.15rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.45);
  background: rgba(201, 168, 76, 0.18);
  color: var(--gold2);
  text-decoration: none;
  font-weight: 600;
}

.assistant-msg--bot a.assistant-action-link:hover {
  background: rgba(201, 168, 76, 0.32);
  color: #fff;
}

body.light-mode .assistant-msg--bot a.assistant-action-link {
  background: rgba(201, 168, 76, 0.14);
  color: var(--gold);
}

body.light-mode .assistant-msg--bot a.assistant-action-link:hover {
  background: rgba(201, 168, 76, 0.18);
  color: #8a6f2e;
}

body.light-mode .assistant-msg--bot a {
  color: #9a7b32;
}

body.light-mode .assistant-msg--bot a:hover {
  color: #7a6228;
}

.assistant-msg--user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-bottom-right-radius: 4px;
}

body.light-mode .assistant-msg--user {
  background: rgba(13, 20, 37, 0.05);
  border-color: rgba(13, 20, 37, 0.08);
  color: var(--text-primary);
}

.assistant-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 0.85rem 0.75rem;
  background: #0d1828;
}

body.light-mode .assistant-quick {
  background: var(--navy3);
}

.assistant-quick-btn {
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: transparent;
  color: var(--gold2);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.light-mode .assistant-quick-btn {
  color: #9a7b32;
  border-color: rgba(201, 168, 76, 0.28);
  background: rgba(255, 255, 255, 0.45);
}

body.light-mode .assistant-quick-btn:hover {
  background: rgba(201, 168, 76, 0.16);
  color: #7a6228;
  border-color: rgba(201, 168, 76, 0.38);
}

.assistant-quick-btn:hover {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
}

.assistant-form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(201, 168, 76, 0.14);
  background: #122033;
}

body.light-mode .assistant-form {
  background: var(--navy2);
  border-top-color: var(--border);
}

.assistant-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  background: #0d1828;
  color: #e2e8f0;
}

body.light-mode .assistant-form input {
  background: var(--navy3);
  color: var(--text-primary);
  border-color: rgba(201, 168, 76, 0.2);
}

body.light-mode .assistant-form input::placeholder {
  color: var(--text-muted);
}

.assistant-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

body.light-mode .assistant-form input:focus {
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.assistant-form button {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: var(--on-gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.assistant-form button svg {
  width: 1rem;
  height: 1rem;
}

.assistant-form button:hover {
  transform: scale(1.05);
}

@keyframes assistantIconRipple {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@keyframes assistantSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .assistant-float-icon-wrap {
    width: 4.1rem;
    height: 4.1rem;
    border-width: 2px;
  }

  .assistant-float-icon-open {
    width: 3rem;
    height: 3rem;
  }

  .assistant-widget.is-open .assistant-float-icon-wrap {
    width: 4.25rem;
    height: 4.25rem;
  }

  .assistant-widget.is-open .assistant-float-icon-open {
    width: 3.15rem;
    height: 3.15rem;
  }

  .assistant-float {
    height: auto;
    padding: 0.3rem 1.1rem 0.3rem 0.3rem;
    gap: 0.55rem;
  }

  .assistant-float-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: #fff;
  }

  .assistant-float-headline::after {
    content: none;
  }

  .assistant-float-subline {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
  }

  .whatsapp-float {
    height: auto;
    padding: 0.3rem 1.1rem 0.3rem 0.3rem;
    gap: 0.55rem;
    font-size: 1.12rem;
  }

  .whatsapp-float-icon-wrap {
    width: 3.65rem;
    height: 3.65rem;
  }

  .whatsapp-float-icon-wrap svg {
    width: 2.15rem;
    height: 2.15rem;
  }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--navy3);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

body.light-mode .back-to-top {
  background: var(--navy2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.metrica-card.reveal {
  transform: translateY(36px) scale(0.97);
}

.metrica-card.reveal.visible {
  transform: translateY(0) scale(1);
}

.galeria-item.reveal {
  transform: translateY(28px) scale(0.96);
}

.galeria-item.reveal.visible {
  transform: translateY(0) scale(1);
}

/* ===== RENDIMIENTO: secciones bajo el pliegue ===== */
#gracias-banner,
#stats-banda,
#confianza,
#nosotros,
#servicios,
#galeria,
#logotipos,
#marcas,
#proceso,
#faq,
#contacto,
#privacidad,
#terminos {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

@media(max-width:900px){
  .confianza-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .confianza-visual img {
    max-width: 240px;
  }

  .galeria-imagenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .galeria-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .galeria-header-logo {
    align-self: center;
  }

  .galeria-header-logo img {
    width: 68px;
    opacity: 0.82;
  }

  .logotipos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .confianza-metricas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonios-grid {
    grid-template-columns: 1fr;
  }

  .sectores-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Quiénes somos: permite que la columna encoja en layout apilado (evita desbordes ocultos) */
  #nosotros .nosotros-visual,
  #nosotros .nosotros-box,
  #nosotros .nosotros-icon-grid,
  #nosotros .nosotros-icon-grid .icon-card {
    min-width: 0;
  }

  .servicios-grid { 
    grid-template-columns:1fr 1fr; 
  }

  .section-sub {
    font-size: 1.22rem;
    line-height: 1.75;
  }

  .serv-title {
    font-size: clamp(1.45rem, 5.2vw, 1.7rem);
  }

  .serv-desc {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .contact-item {
    padding: 1.15rem;
  }

  .contact-val {
    font-size: 1rem;
  }
}

@media(max-width:600px){
  section {
    padding: 3rem var(--section-pad-x);
  }

  .dark-mode-toggle,
  .nav-toggle,
  .lang-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .dark-mode-toggle,
  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  h1 {
    line-height: 1.12;
  }

  h2 {
    line-height: 1.2;
  }

  .section-sub {
    font-size: 1.16rem;
    line-height: 1.72;
  }

  .serv-img {
    height: 250px;
  }

  .servicios-grid {
    grid-template-columns:1fr; 
  }

  .confianza-metricas {
    grid-template-columns: 1fr;
  }

  .sectores-grid {
    grid-template-columns: 1fr;
  }

  .galeria-imagenes {
    grid-template-columns: 1fr;
  }

  .logotipos-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    gap: 1rem;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
  }

  .footer-main {
    padding: 2.4rem 5vw 2rem;
  }

  .footer-nav-list a,
  .footer-contact-list a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }

  .whatsapp-float {
    bottom: 16px;
    right: max(16px, env(safe-area-inset-right, 0px));
    width: 3.15rem;
    height: 3.15rem;
    padding: 0.3rem;
    justify-content: center;
  }

  .whatsapp-float-label {
    display: none;
  }

  .assistant-widget {
    bottom: 16px;
    left: max(16px, env(safe-area-inset-left, 0px));
  }

  .assistant-float-copy {
    display: none;
  }

  .assistant-float {
    padding: 0.3rem;
    justify-content: center;
  }

  .assistant-panel {
    width: min(22rem, calc(100vw - 1.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    height: min(32rem, calc(100svh - 10rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    max-height: calc(100dvh - 10rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: 5.35rem;
    right: 16px;
  }
}
