/* ══════════════════════════════════════════
   BELSUÉ MEDIACIÓN DE SEGUROS — ESTILOS
   ══════════════════════════════════════════ */

/* Google Fonts se carga vía <link rel="preconnect"> + <link> en el HTML de cada página
   para mayor rendimiento. El @import bloquea el renderizado; los <link> en <head> no. */

/* ── VARIABLES ── */
:root {
  --crimson: #8A0C3C;
  --crimson-dk: #5e0828;
  --crimson-lt: #b01050;
  --gold: #C4982A;
  --gold-lt: #e6c060;
  --grey: #939393;
  --grey-lt: #C0C0C0;
  --bg: #FFFFFF;
  --bg2: #EFEBE6;
  --white: #FFFFFF;
  --ink: #1C1C1C;
  --ink-mid: #4A4040;
  --ink-soft: #8A7E7E;
  --border: #DDD5CE;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Lato', sans-serif;
  --shadow: 0 4px 24px rgba(138, 12, 60, .10);
  --shadow-lg: 0 12px 48px rgba(138, 12, 60, .18);
  --radius: 8px;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--ink-mid);
}


/* ══════════════ HEADER / NAV ══════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 3px solid var(--crimson);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
  transition: box-shadow .3s;
}

header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, .14);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
  user-select: none;
  padding: .5rem .75rem;
}

.nav-dropdown-toggle .dropdown-arrow {
  font-size: .6rem;
  transition: transform .25s;
  display: inline-block;
  margin-top: 0;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown>a::after {
  display: none !important;
}

/* Mega panel */
.dropdown-mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--crimson);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  min-width: 950px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, visibility .22s, transform .22s;
  transform: translateX(-50%) translateY(6px);
  z-index: 9990;
}

.nav-dropdown:hover .dropdown-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown.dropdown-closing .dropdown-mega,
.nav-dropdown.dropdown-closing:hover .dropdown-mega {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-50%) translateY(-10px) !important;
}

/* Columnas del mega menú */
.dropdown-col {
  padding: 1.4rem 1.2rem;
  border-right: 1px solid var(--border);
}

.dropdown-col:last-child {
  border-right: none;
}

.dropdown-col-title {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: .4rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--bg2);
}

.dropdown-col .dropdown-col-title a {
  color: var(--crimson) !important;
  text-decoration: none !important;
  border: none !important;
  transition: opacity .18s !important;
}

.dropdown-col-title a:hover {
  opacity: .75 !important;
}

.dropdown-col-title a::after {
  display: none !important;
}

.mobile-sub-title-link {
  color: inherit !important;
  text-decoration: none !important;
  border: none !important;
}

.dropdown-col-desc {
  font-size: .72rem;
  color: var(--ink-soft);
  line-height: 1.45;
  font-weight: 400;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-height .28s ease, opacity .28s ease, margin .28s ease;
}

.dropdown-col:hover .dropdown-col-desc {
  max-height: 80px;
  opacity: 1;
  margin: 0 0 .7rem;
}

.dropdown-col.col-sport .dropdown-col-desc {
  color: rgba(255, 255, 255, .7);
}

.dropdown-col a {
  display: block;
  padding: .38rem 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-mid) !important;
  letter-spacing: .03em;
  text-transform: none !important;
  transition: color .18s, padding-left .18s;
  border: none !important;
  line-height: 1.35;
}

.dropdown-col a::after {
  display: none !important;
}

.dropdown-col a:hover {
  color: var(--crimson) !important;
  padding-left: .4rem;
}

.dropdown-col a small {
  display: block;
  font-size: .68rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: .1rem;
  letter-spacing: 0;
  text-transform: none;
}

/* Columna destacada (deporte) */
.dropdown-col.col-sport {
  background: linear-gradient(160deg, var(--crimson-dk), var(--crimson));
  border-radius: 0 0 8px 0;
  border-right: none;
}

.dropdown-col.col-sport .dropdown-col-title {
  color: var(--gold-lt);
  border-color: rgba(255, 255, 255, .15);
}

.dropdown-col.col-sport .dropdown-col-title a {
  color: var(--gold-lt) !important;
}

.dropdown-col.col-sport a {
  color: rgba(255, 255, 255, .85) !important;
}

.dropdown-col.col-sport a:hover {
  color: var(--gold-lt) !important;
}

.dropdown-col.col-sport a small {
  color: rgba(255, 255, 255, .5);
}

/* ── MOBILE DROPDOWN ── */
.mobile-dropdown {
  border-bottom: 1px solid var(--border);
}

.mobile-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem 0;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color .2s;
  user-select: none;
}

.mobile-dropdown-header:hover {
  color: var(--crimson);
}

.mobile-dropdown-arrow {
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform .28s;
  display: inline-block;
  line-height: 1;
}

.mobile-dropdown.open .mobile-dropdown-arrow {
  transform: rotate(90deg);
}

.mobile-dropdown-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.mobile-dropdown.open .mobile-dropdown-body {
  max-height: 2000px;
}

.mobile-dropdown-section {
  padding: .5rem 0 .3rem .8rem;
  border-left: 2px solid var(--crimson);
  margin: .5rem 0 .6rem;
}

.mobile-dropdown-section-title {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: .35rem;
}

.mobile-dropdown-body a {
  display: block !important;
  padding: .35rem 0 .35rem .4rem !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  color: var(--ink-mid) !important;
  border-bottom: none !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  transition: color .18s !important;
}

.mobile-dropdown-body a:hover {
  color: var(--crimson) !important;
}

.mobile-dropdown-body a small {
  display: block;
  font-size: .68rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.mobile-sub-dropdown {
  border-left: 2px solid var(--crimson);
  margin: .5rem 0 .6rem;
  padding-left: .8rem;
}

.mobile-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .35rem 0;
  cursor: pointer;
  user-select: none;
}

.mobile-sub-header span:first-child {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson);
  transition: opacity .18s;
}

.mobile-sub-header:hover span:first-child {
  opacity: .75;
}

.mobile-sub-arrow {
  font-size: .9rem;
  font-weight: 400;
  color: var(--crimson);
  transition: transform .25s;
  display: inline-block;
  line-height: 1;
}

.mobile-sub-dropdown.open .mobile-sub-arrow {
  transform: rotate(90deg);
}

.mobile-sub-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.mobile-sub-dropdown.open .mobile-sub-body {
  max-height: 800px;
}

.mobile-sub-desc {
  font-size: .75rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: .2rem 0 .5rem;
  font-weight: 400;
}

.nav-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.logo-mark {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: .1rem;
}

.logo-img {
  height: 48px;
  width: auto;
}

.nav-inner > nav {
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.logo-sub {
  font-family: 'Playfair Display', serif;
  color: var(--ink-soft);
  line-height: 1.3;
  display: block;
}

.logo-sub-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: .68rem;
  letter-spacing: .06em;
}

.logo-sub-caps {
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.logo-r-inv {
  display: inline-block;
  transform: scaleX(-1);
}

/* Nav links */
nav ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0;
}

nav ul li a {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: .5rem .65rem;
  border-radius: 4px;
  position: relative;
  transition: color .2s;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--crimson);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--white) !important;
  color: var(--ink) !important;
  border: 2px solid var(--crimson) !important;
  padding: .5rem 1.2rem !important;
  border-radius: 4px !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--crimson) !important;
  color: white !important;
}

/* Botón Área de Cliente en menú */
.nav-ecliente {
  background: var(--crimson) !important;
  color: white !important;
  border: 2px solid var(--crimson) !important;
  padding: .5rem 1.2rem !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}

.nav-ecliente::after {
  display: none !important;
}

.nav-ecliente:hover {
  background: var(--white) !important;
  color: var(--ink) !important;
}

/* Área de Cliente en menú móvil */
.mobile-ecliente {
  display: block;
  background: var(--gold) !important;
  color: #1C1C1C !important;
  font-weight: 700 !important;
  border-radius: 6px;
  margin: .5rem 0 !important;
  padding: .85rem 1.2rem !important;
  text-align: center;
}

.mobile-ecliente:hover {
  background: var(--gold-lt) !important;
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .3rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--crimson);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color .2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--crimson);
}

/* ══════════════ HERO ══════════════ */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Animación de opacidad para una transición suave. Ciclo de 20s */
@keyframes heroFade {

  0%,
  40% {
    opacity: 0;
    /* Muestra la imagen 1 (fondo base) */
  }

  50%,
  90% {
    opacity: 1;
    /* Transiciona a la imagen 2 */
  }

  100% {
    opacity: 0;
    /* Vuelve suavemente a la imagen 1 para reiniciar el ciclo */
  }
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('../imagenes/imagenesDecoracion/oficinaBelsue.jpg');
}

/* La segunda imagen la ponemos superpuesta y le animamos la opacidad */
.hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('../imagenes/imagenesDecoracion/jorge-y-laura.jpg');
  opacity: 0;
  animation: heroFade 20s infinite;
}

.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(92, 8, 40, .90) 0%, rgba(138, 12, 60, .52) 50%, rgba(0, 0, 0, .20) 100%);
  z-index: 1;
  /* Asegura que el gradiente rojizo oscurecedor siempre esté por encima de ambas imágenes */
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  color: white;
}

.hero-content>* {
  max-width: 680px;
}

.hero-eyebrow {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold-lt);
}

.hero-content h1 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}

.hero-content h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero-content p {
  color: rgba(255, 255, 255, .88);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ══════════════ BOTONES ══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 4px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all .2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--crimson-dk);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 152, 42, .4);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, .6);
}

.btn-outline-white:hover {
  background: white;
  color: var(--crimson);
  border-color: white;
}

.btn-crimson {
  background: var(--crimson);
  color: white;
  border-color: var(--crimson);
}

.btn-crimson:hover {
  background: var(--crimson-lt);
  border-color: var(--crimson-lt);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-crimson {
  background: transparent;
  color: var(--crimson);
  border-color: var(--crimson);
}

.btn-outline-crimson:hover {
  background: var(--crimson);
  color: white;
}

.btn-sm {
  padding: .5rem 1.2rem;
  font-size: .78rem;
}

/* ══════════════ SECCIONES ══════════════ */
section {
  padding: 4rem 2rem;
}

.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-header h2 {
  color: var(--ink);
  margin-bottom: .8rem;
}

.section-header p {
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
}

/* ══════════════ STATS BAR ══════════════ */
.stats-bar {
  background: var(--crimson);
  padding: 2.5rem 2rem;
}

.stats-grid {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}


.stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
}

.stat-label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  margin-top: .4rem;
}

.stats-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

/* ══════════════ CARDS DE SERVICIO ══════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: #F9EEF3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  transition: transform .3s;
}

.service-card h3 {
  color: var(--ink);
  margin-bottom: .5rem;
}

.service-card p {
  font-size: .9rem;
}

/* ── OFICINAS GRID & CARDS ── */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
  /* Asegura que todas las cards midan lo mismo de alto */
}

.office-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  /* Contexto de apilamiento */
}

.office-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.office-card iframe {
  width: 100%;
  height: 200px;
  border: none;
  flex-shrink: 0;
  /* El mapa no se encoge */
}

.office-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  /* Ocupa todo el alto restante */
}

/* --- CAMBIO CRÍTICO PARA EL BOTÓN --- */
.office-card-body .btn {
  margin-top: auto;
  /* Empuja hacia abajo si hay espacio */
  align-self: flex-start;
  /* Alineado a la IZQUIERDA estrictamente */
  width: auto;
  /* Solo ocupa lo que mide el texto */
  display: inline-block;
  /* Evita que se comporte como bloque completo */
  white-space: nowrap;
  /* Evita que el texto se parta en dos líneas */
}

/* TRUCO DE SEGURIDAD: 
   Si margin-top:auto falla por algún conflicto, este elemento invisible 
   ocupará todo el espacio vacío y empujará el botón al fondo sí o sí. */
.spacer-push {
  flex-grow: 1;
  display: block;
  content: "";
}

/* ------------------------------------ */

.office-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 0.4rem;
  opacity: 0.8;
}

.office-card-body h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  margin-top: 0;
  /* Resetear márgenes superiores */
}

.office-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-mid);
  align-items: flex-start;
  /* Alineación superior de iconos */
}

.office-row span:first-child {
  width: 20px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.office-row a {
  transition: color 0.2s;
  color: inherit;
  /* Hereda el color del texto */
  text-decoration: none;
}

.office-row a:hover {
  color: var(--crimson);
  text-decoration: underline;
}

/* ══════════════ SPLIT SECTION ══════════════ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse>* {
  direction: ltr;
}

.split-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 480px;
  box-shadow: var(--shadow-lg);
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.split-img:hover img {
  transform: scale(1.04);
}

.split-img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--crimson);
  color: white;
  padding: .8rem 1.2rem;
  border-radius: 6px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.split-content {
  padding: 1rem 0;
}

.split-content .section-eyebrow {
  justify-content: flex-start;
}

.split-content .section-eyebrow::after {
  display: none;
}

.split-content h2 {
  margin-bottom: 1rem;
}

.split-content p {
  margin-bottom: 1.2rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1.2rem 0 1.8rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .9rem;
  color: var(--ink-mid);
}

.check-list li::before {
  content: '✓';
  color: var(--crimson);
  font-weight: 700;
  font-size: .85rem;
  margin-top: .12rem;
  flex-shrink: 0;
}

/* ══════════════ PARTE AMISTOSO ══════════════ */
.parte-section {
  background: linear-gradient(135deg, var(--crimson-dk) 0%, var(--crimson) 100%);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.parte-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.parte-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.parte-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.parte-content p {
  color: rgba(255, 255, 255, .82);
  margin-bottom: 1.5rem;
}

.parte-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.parte-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* Círculo eCliente — fondo semitransparente, número dorado */
.ecliente-step-num {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-lt);
  font-size: .9rem;
  flex-shrink: 0;
}

/* Círculo Parte Amistoso — fondo blanco, número negro */
.parte-step-num {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 2px solid #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  color: #111;
  font-size: .9rem;
  flex-shrink: 0;
}

.parte-step-text strong {
  display: block;
  color: white;
  font-size: .9rem;
}

.parte-step-text span {
  color: rgba(255, 255, 255, .65);
  font-size: .82rem;
}

.parte-form-box {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}

.parte-form-box h3 {
  color: var(--crimson);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.parte-form-box .form-group {
  margin-bottom: 1rem;
}

.parte-form-box label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .3rem;
}

.parte-form-box input,
.parte-form-box select,
.parte-form-box textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--ink);
  font-size: .88rem;
  padding: .6rem .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.parte-form-box input:focus,
.parte-form-box select:focus,
.parte-form-box textarea:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(138, 12, 60, .1);
}

.parte-form-box textarea {
  resize: vertical;
  min-height: 80px;
}

.parte-form-box .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

/* ══════════════ CARGLASS / CONVENIO ══════════════ */
.carglass-section {
  background: var(--bg2);
  padding: 4rem 2rem;
}

.carglass-badge {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  background: white;
  border: 2px solid var(--crimson);
  border-radius: 8px;
  padding: .8rem 1.4rem;
  margin-bottom: 2rem;
}

.carglass-badge-text {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 700;
}

.carglass-logo-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}

/* ══════════════ RESEÑAS / TESTIMONIOS ══════════════ */
/* Corrección recomendada: */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative;
  transition: transform .25s, box-shadow .25s;

  /* AÑADE ESTO PARA ALINEAR EL AUTOR ABAJO */
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.review-stars {
  color: #f5a623;
  font-size: 1rem;
  margin-bottom: .8rem;
  letter-spacing: .1em;
}

.review-text {
  font-style: italic;
  color: var(--ink-mid);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-text::before {
  content: '"';
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--crimson);
  line-height: 0;
  vertical-align: -.4rem;
  margin-right: .2rem;
}

.review-text::after {
  content: '"';
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--crimson);
  line-height: 0;
  vertical-align: -.4rem;
  margin-left: .2rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: auto;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.review-author-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
}

.review-source {
  font-size: .72rem;
  color: var(--ink-soft);
}

.review-google-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #4285F4;
  color: white;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .2rem .5rem;
  border-radius: 3px;
}

.reviews-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
}

.reviews-track .review-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.reviews-btn {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .2s, color .2s, background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  background: #fff5f5;
}

.reviews-dots {
  display: flex;
  gap: .45rem;
}

.reviews-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .25s, transform .25s;
}

.reviews-dot.active {
  background: var(--crimson);
  transform: scale(1.3);
}

@media (max-width: 900px) {
  .reviews-track .review-card {
    flex: 0 0 calc(50% - .75rem);
  }
}

@media (max-width: 600px) {
  .reviews-track .review-card {
    flex: 0 0 100%;
  }
}

/* ══════════════ FAQ ACORDEÓN ══════════════ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  transition: background .2s;
}

.accordion-header:hover {
  background: #fdf8f6;
}

.accordion-header.open {
  color: var(--crimson);
  background: #fdf8f6;
}

.accordion-icon {
  font-size: 1.3rem;
  color: var(--crimson);
  transition: transform .3s;
  flex-shrink: 0;
}

.accordion-header.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.5rem;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.7;
}

.accordion-body.open {
  max-height: 400px;
  padding: 0 1.5rem 1.2rem;
}

/* ══════════════ PYME SELLO ══════════════ */
.pyme-badge-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 1.2rem 1.8rem;
  margin: 1.5rem 0;
  max-width: 420px;
  box-shadow: 0 4px 16px rgba(196, 152, 42, .15);
}

.pyme-badge-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.pyme-badge-text strong {
  display: block;
  color: var(--crimson);
  font-size: 1.05rem;
}

.pyme-badge-text span {
  font-size: .82rem;
  color: var(--ink-soft);
}

/* ══════════════ VALORES / NÚMEROS ══════════════ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: .4rem;
}

.value-item h3 {
  color: var(--crimson);
  margin-bottom: .5rem;
}

.value-item p {
  font-size: .88rem;
}

/* ══════════════ TIMELINE ══════════════ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  width: 14px;
  height: 14px;
  background: var(--crimson);
  border-radius: 50%;
  border: 3px solid var(--bg);
  top: .3rem;
  transform: translateX(-6px);
}

.timeline-year {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: .2rem;
}

.timeline-item h3 {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: .3rem;
}

.timeline-item p {
  font-size: .88rem;
}

/* ══════════════ PARTNERS (COMPAÑÍAS) ══════════════ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.partner-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: default;
}

.partner-logo:hover {
  border-color: var(--crimson);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.partner-logo h3 {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-mid);
}

/* ══════════════ PÁGINAS DE SEGURO ══════════════ */
.seg-hero {
  background: linear-gradient(135deg, #5e0828, #8A0C3C);
  min-height: 320px;
  display: flex;
  align-items: center;
}

.seg-hero .container {
  color: white;
  padding: 3.5rem 2.5rem;
}

.seg-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: .8rem;
}

.seg-hero p {
  color: rgba(255, 255, 255, .82);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0;
}

.seg-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

/* Listado de productos en página de categoría */
.seg-product-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.seg-product-item {
  display: block !important;
  padding: 1.4rem 1.6rem !important;
  border-bottom: 1px solid var(--border) !important;
  text-decoration: none !important;
  border-left: none !important;
  transition: background .18s !important;
  color: inherit !important;
}

.seg-product-item:first-child {
  border-top: 1px solid var(--border);
}

.seg-product-item:hover {
  background: var(--white) !important;
}

.seg-product-item::after {
  display: none !important;
}

.seg-product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--crimson-dk);
  margin-bottom: .35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seg-product-arrow {
  font-size: .9rem;
  opacity: 0;
  transition: opacity .18s, transform .18s;
  transform: translateX(-4px);
}

.seg-product-item:hover .seg-product-arrow {
  opacity: 1;
  transform: translateX(0);
}

.seg-product-desc {
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .seg-product-item {
    padding: 1.1rem 1rem !important;
  }
}

.seg-intro-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--ink);
  margin-bottom: 1rem;
}

.seg-intro-text p {
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.seg-why-box {
  background: var(--white);
  border-radius: 10px;
  border-left: 4px solid var(--crimson);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 2.2rem;
  color: var(--ink);
}

.seg-why-box h3 {
  color: var(--crimson-dk);
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.seg-why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.seg-why-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--ink-mid);
  line-height: 1.5;
}

.seg-why-list li::before {
  content: '✓';
  color: var(--crimson);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* Grid 2+2+1: dos columnas con la última tarjeta centrada a media anchura */
.seg-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.8rem;
}

/* Envoltorio título-fuera + tarjeta */
.seg-card-wrap {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 88px; /* altura header (72px) + margen visual */
}

.seg-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--crimson-dk);
  font-weight: 600;
  margin: 0 0 .8rem 0;
  line-height: 1.2;
}

/* Tarjetas dentro del grid: alargadas y con botón anclado al fondo */
.seg-cards-grid .seg-why-box {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding-bottom: 2rem;
  flex: 1;
  transition: box-shadow .3s ease, transform .3s ease;
}

.seg-cards-grid .seg-why-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px var(--crimson), 0 12px 30px rgba(138, 12, 60, .15);
}

.seg-cards-grid .seg-why-box .seg-why-list {
  margin-bottom: 1.8rem;
}

.seg-cards-grid .seg-why-box .btn {
  margin-top: auto;
  align-self: flex-start;
}

.seg-cards-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 1.4rem);
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .seg-cards-grid {
    grid-template-columns: 1fr;
  }
  .seg-cards-grid > :last-child:nth-child(odd) {
    max-width: none;
    margin: 0;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.8rem;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--crimson);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: .8rem;
}

.feature-card h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: .4rem;
}

.feature-card p {
  font-size: .88rem;
  color: var(--ink-mid);
}

.faq-section {
  background: var(--bg2);
}

@media (max-width:860px) {
  .seg-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ══════════════ PROPUESTA DE VALOR ══════════════ */
.propval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.propval-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.propval-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--crimson);
}

.propval-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.propval-item h3 {
  color: var(--crimson);
  font-size: 1.05rem;
  margin-bottom: .5rem;
}

.propval-item p {
  font-size: .9rem;
  color: var(--ink-mid);
}

/* ══════════════ CARRUSEL NOTICIAS ══════════════ */
.news-carousel {
  position: relative;
  overflow: hidden;
}

.news-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.news-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}

.news-tag {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.news-card-body h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

.news-card-body p {
  font-size: .85rem;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.news-link {
  font-size: .78rem;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: auto;
}

.news-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .news-card {
    flex: 0 0 calc(50% - .75rem);
  }
}

@media (max-width: 600px) {
  .news-card {
    flex: 0 0 100%;
  }
}

/* ══════════════ CTA BANNER ══════════════ */
.cta-banner {
  background: var(--crimson);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: white;
  margin-bottom: .8rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, .82);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════ BLOG — NUEVO DISEÑO ══════════════ */
/* Carrusel de destacadas */
.featured-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.featured-slides {
  display: flex;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.featured-slide {
  min-width: 100%;
  position: relative;
  height: 480px;
  overflow: hidden;
}

.featured-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.featured-slider-wrap:hover .featured-slide-img {
  transform: scale(1.03);
}

.featured-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(92, 8, 40, .6) 0%, rgba(92, 8, 40, .2) 50%, transparent 100%);
}

.featured-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  z-index: 2;
  color: white;
}

.featured-slide-content .rs-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--crimson-dk);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 3px;
  margin-bottom: .8rem;
}

.featured-slide-content h2 {
  color: white;
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin-bottom: .5rem;
}

.featured-slide-content p {
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
  max-width: 600px;
}

/* Slider controles */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 3;
}

.slider-btn:hover {
  background: var(--crimson);
}

.slider-btn.prev {
  left: 1rem;
}

.slider-btn.next {
  right: 1rem;
}

.slider-dots {
  position: absolute;
  bottom: 1.2rem;
  right: 1.5rem;
  display: flex;
  gap: .4rem;
  z-index: 3;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.slider-dot.active {
  background: var(--gold-lt);
  transform: scale(1.3);
}

/* Grid de noticias */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--crimson);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.07);
}

.blog-card-tag {
  position: absolute;
  bottom: .8rem;
  left: .8rem;
  background: var(--crimson);
  color: white;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 3px;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  font-size: .75rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.blog-card p {
  font-size: .85rem;
  margin-bottom: 1rem;
}

.blog-card-link {
  font-size: .78rem;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
}

.blog-card-link:hover {
  text-decoration: underline;
}

/* ══════════════ RS GRID ══════════════ */
.rs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.rs-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}

.rs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.rs-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--crimson-lt);
}

.rs-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.rs-card:hover .rs-card-img img {
  transform: scale(1.06);
}

.rs-card-body {
  padding: 1.5rem;
}

.rs-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: .4rem;
}

.rs-card h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: .4rem;
}

.rs-card p {
  font-size: .85rem;
}

/* ══════════════ PAGE HERO (INTERNAS) ══════════════ */
.page-hero {
  position: relative;
  padding: 5rem 2rem;
  background: var(--crimson-dk);
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
}

.page-hero.nosotros-bg::before {
  background-image: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?w=1400&q=80');
}

.page-hero.compania-bg::before {
  background-image: url('https://images.unsplash.com/photo-1554469384-e58fac16e23a?w=1400&q=80');
}

.page-hero.rs-bg::before {
  background-image: url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?w=1400&q=80');
}

.page-hero.contacto-bg::before {
  background-image: url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1400&q=80');
}

.page-hero.blog-bg::before {
  background-image: url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?w=1400&q=80');
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 1rem;
}

.page-hero .breadcrumb a {
  color: var(--gold-lt);
}

.page-hero h1 {
  color: white;
  margin-bottom: .7rem;
}

.page-hero p {
  color: rgba(255, 255, 255, .78);
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════ CONTACTO ══════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #F9EEF3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.contact-detail-text strong {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--crimson);
}

.contact-detail-text span {
  font-size: .9rem;
  color: var(--ink-mid);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--ink);
  font-size: .9rem;
  padding: .7rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(138, 12, 60, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

#form-msg {
  font-size: .85rem;
  font-weight: 700;
  margin-top: .8rem;
  min-height: 1.2em;
}

#form-msg.success {
  color: #1a7a4a;
}

#form-msg.error {
  color: var(--crimson);
}

/* Oficinas */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.office-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.office-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.office-card-img {
  height: 160px;
  overflow: hidden;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.office-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.office-card:hover .office-card-img img {
  transform: scale(1.06);
}

.office-card-body {
  padding: 1.2rem;
}

.office-name {
  font-weight: 700;
  color: var(--crimson);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}

.office-card h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: .4rem;
}

.office-card p {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-bottom: .6rem;
}

.office-card a {
  font-size: .78rem;
  font-weight: 700;
  color: var(--crimson);
}

/* Mapa */
.map-placeholder {
  height: 340px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* ══════════════ FOOTER ══════════════ */
footer {
  background: #1a0810;
  color: rgba(255, 255, 255, .65);
  padding: 4rem 2rem 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand .logo-name {
  color: var(--gold-lt);
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, .4);
}

.footer-brand p {
  font-size: .85rem;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .6);
  transition: color .2s, border-color .2s, background .2s;
}

.footer-social a:hover {
  color: #fff;
  border-color: var(--gold-lt);
  background: rgba(196, 152, 42, .15);
}

.footer-col h4 {
  font-family: var(--serif);
  font-size: .9rem;
  color: white;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: .55rem;
}

.footer-col ul li a {
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
  transition: color .2s;
}

.footer-col ul li a:hover {
  color: var(--gold-lt);
}

.footer-col .footer-contact-item {
  font-size: .82rem;
  margin-bottom: .55rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

.footer-contact-item span:first-child {
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Contacto del footer repartido en dos filas ──────────────────
   Apilados en vertical, los 5 datos marcaban la altura de todo el
   footer. En rejilla ocupan dos filas y la banda queda mucho mas
   fina. Las columnas son `auto`: cada dato ocupa lo que necesita. */
.footer-col {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: .55rem 2.5rem;
  align-content: start;
  justify-content: start;
}

.footer-col h4 {
  grid-column: 1 / -1;
}

.footer-col .footer-contact-item {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .footer-col {
    grid-template-columns: auto auto;
  }
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: rgba(255, 255, 255, .35);
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, .35);
}

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

/* ══════════════ WHATSAPP FLOTANTE ══════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, .4);
  transition: transform .25s, box-shadow .25s;
  animation: whatsappPulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .5);
  animation: none;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + .8rem);
  background: #1a1a1a;
  color: white;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  padding: .4rem .8rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

@keyframes whatsappPulse {

  0%,
  100% {
    box-shadow: 0 4px 24px rgba(37, 211, 102, .4);
  }

  50% {
    box-shadow: 0 4px 32px rgba(37, 211, 102, .7), 0 0 0 8px rgba(37, 211, 102, .1);
  }
}

/* ══════════════ SCROLL REVEAL ══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

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

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}

/* DISEÑO DESTACADO DECESOS 24H */
.emergency-card {
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--crimson) 0%, #8b1228 100%);
  border-radius: 15px;
  padding: 3rem 3.5rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 15px 35px rgba(176, 28, 54, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.emergency-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../imagenes/imagenesDecoracion/decesos.png') center/39.6% no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/* ── Semillas voladoras del diente de león ── */
.seed-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.seed-field .seed-def {
  position: absolute;
  width: 0;
  height: 0;
}

.seed {
  position: absolute;
  display: block;
  height: auto;
  aspect-ratio: 50 / 88;
  color: #ffffff;
  opacity: 0;
  will-change: transform, opacity;
  animation: seedDrift var(--dur, 9s) linear var(--delay, 0s) infinite;
}

@keyframes seedDrift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(var(--sc, 1)); opacity: 0; }
  12%  { opacity: var(--op, .45); }
  85%  { opacity: var(--op, .45); }
  100% { transform: translate(var(--dx, 140px), var(--dy, -100px)) rotate(var(--rot, 140deg)) scale(var(--sc, 1)); opacity: 0; }
}

/* Posición de partida y trayectoria de cada semilla */
.seed.s1 { left: 30%; top: 60%; width: 26px; --dx: 150px; --dy: -120px; --rot: 130deg; --dur: 9s;   --delay: 0s;   --op: .5;  --sc: 1;   }
.seed.s2 { left: 38%; top: 52%; width: 20px; --dx: 130px; --dy: -100px; --rot: 160deg; --dur: 11s;  --delay: 1.5s; --op: .4;  --sc: .85; }
.seed.s3 { left: 34%; top: 66%; width: 30px; --dx: 170px; --dy: -80px;  --rot: 110deg; --dur: 8s;   --delay: 3s;   --op: .45; --sc: 1.1; }
.seed.s4 { left: 44%; top: 58%; width: 18px; --dx: 120px; --dy: -110px; --rot: 180deg; --dur: 12s;  --delay: 4.5s; --op: .35; --sc: .8;  }
.seed.s5 { left: 40%; top: 64%; width: 24px; --dx: 160px; --dy: -95px;  --rot: 140deg; --dur: 10s;  --delay: 6s;   --op: .45; --sc: .95; }
.seed.s6 { left: 48%; top: 54%; width: 22px; --dx: 140px; --dy: -130px; --rot: 150deg; --dur: 9.5s; --delay: 2.2s; --op: .4;  --sc: .9;  }

@media (prefers-reduced-motion: reduce) {
  .seed { animation: none; opacity: 0; }
}

.emergency-info,
.emergency-cta {
  position: relative;
  z-index: 1;
}

.emergency-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}



.emergency-text h2 {
  color: white !important;
  margin: 0 !important;
  font-size: 2rem !important;
  letter-spacing: -0.02em;
}

.emergency-text p {
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 4px 0 0 0 !important;
  font-size: 0.9rem;
}

.emergency-cta .btn-white {
  background: white;
  color: var(--crimson);
  padding: 1.4rem 3rem;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.emergency-cta .btn-white span {
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

.emergency-cta .btn-white:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.emergency-cta small {
  font-size: 0.78rem;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ══════════════ BOTONES ACCIÓN PARTE AMISTOSO ══════════════ */
.parte-actions-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ecliente-app-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.ecliente-app-badges a {
  flex: 1;
  display: block;
  border: 2px solid var(--crimson);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 1;
  transition: border-color .2s, box-shadow .2s;
}

.ecliente-app-badges a:hover {
  border-color: var(--crimson-dk, #8b0000);
  box-shadow: 0 4px 12px rgba(155, 20, 50, .15);
}

.ecliente-app-badges a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.2rem 2rem;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
  min-height: 200px;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.action-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* ── Tarjeta eCliente (Limpia y corporativa) ── */
.card-ecliente {
  background: var(--white);
  border: 2px solid transparent;
}

.card-ecliente:hover {
  border-color: var(--gold);
}

.card-ecliente h3 {
  color: var(--crimson);
  margin-bottom: .5rem;
  font-size: 1.3rem;
}

.card-ecliente p {
  color: var(--ink-mid);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

/* ── Tarjeta PDF (Fondo granate) ── */
.card-pdf {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-pdf::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(94, 8, 40, 0.92) 0%, rgba(138, 12, 60, 0.75) 100%);
  z-index: 1;
}

.card-pdf h3 {
  color: white;
  margin-bottom: .5rem;
  font-size: 1.3rem;
}

.card-pdf p {
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

/* ══════════════ SECCIÓN GESTIÓN SINIESTROS ══════════════ */
.gestion-siniestros {
  padding: 4rem 0;
  background: var(--bg);
  /* O puedes usar var(--bg2) si quieres que resalte del fondo blanco */
}

.parte-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Crea las dos columnas iguales */
  gap: 2rem;
  max-width: 1000px;
  /* Ajusta el ancho para que no queden demasiado estiradas */
  margin: 0 auto;
}

.action-card {
  position: relative;
  display: flex;
  padding: 2.5rem 2rem;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
  min-height: 250px;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Tarjeta eCliente (Izquierda) */
.card-ecliente {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card-ecliente:hover {
  transform: translateY(-5px);
  border-color: var(--crimson);
  box-shadow: var(--shadow-lg);
}

.card-ecliente h3 {
  color: var(--crimson);
  margin-bottom: .8rem;
}

/* Tarjeta PDF (Derecha) */
.card-pdf {
  background: linear-gradient(135deg, rgba(94, 8, 40, 0.95) 0%, rgba(138, 12, 60, 0.85) 100%);
  color: white;
}

.card-pdf .action-content {
  position: relative;
  z-index: 2;
}

.card-pdf h3 {
  color: white;
  margin-bottom: .8rem;
}

.card-pdf p {
  color: rgba(255, 255, 255, 0.9);
}


/* ══════════════ ESTILOS PARA EL TELÉFONO (+34) ══════════════ */
.phone-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg, #ffffff);
  border: 1px solid var(--border, #cccccc);
  border-radius: 5px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.phone-wrapper:focus-within {
  border-color: var(--crimson, #8a0c3c);
  box-shadow: 0 0 0 3px rgba(138, 12, 60, 0.1);
}

.phone-prefix {
  background: var(--bg2, #f5f5f5);
  padding: 0 0.8rem;
  height: 45px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border, #cccccc);
  color: var(--ink-soft, #666666);
  font-weight: 700;
  font-size: 0.9rem;
  user-select: none;
}

.phone-wrapper input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 1;
  width: 100%;
  height: 45px;
  padding: 0 10px;
  outline: none;
  background: transparent;
  min-width: 0;
  /* Evita que el input empuje el contenedor en móviles */
}

/* ══════════════ CHECKBOX Y ENLACES ══════════════ */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  cursor: pointer;
  text-transform: none;
  font-size: .82rem;
  color: var(--ink-mid, #444444);
  margin-top: 1rem;
}

.checkbox-label input {
  width: auto !important;
  /* Fuerza a que no herede anchos de otros inputs */
  margin-top: .2rem;
}

.checkbox-label a {
  color: var(--crimson, #8a0c3c);
  text-decoration: underline;
}

/* ══════════════ MENSAJES DE ESTADO ══════════════ */
#form-msg {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
  /* Mantiene el espacio aunque esté vacío */
}

#form-msg.error {
  color: #d32f2f;
}

#form-msg.success {
  color: #1b5e20;
}

/* Ajuste para Móviles (1 columna) */
@media (max-width: 768px) {
  .parte-actions-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

/* ══════════════ RESPONSIVE ══════════════ */

/* 2 líneas: logo arriba, nav abajo */
@media (min-width: 901px) and (max-width: 1280px) {
  header {
    height: auto;
  }

  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: .6rem 1.5rem .4rem;
    gap: 0;
  }

  .logo {
    flex: 0 0 100%;
    justify-content: center;
    padding-bottom: .3rem;
  }

  header nav {
    flex: 0 0 100%;
  }

  header nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
  }

  header nav ul li a {
    font-size: .72rem;
    padding: .45rem .5rem;
  }
}

@media (max-width: 1050px) {
  nav ul {
    gap: 0;
  }

  nav ul li a {
    font-size: .72rem;
    padding: .5rem .55rem;
  }
}

@media (max-width: 900px) {

  /* Nav */
  nav ul {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Header */
  .nav-inner {
    padding: 0 1rem;
  }

  /* Layout */
  .split-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-section.reverse {
    direction: ltr;
  }

  .split-img {
    height: 260px;
  }

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

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

  .parte-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* 3-col grid pasa a 1 columna en tablets */
  .values-grid-3col {
    grid-template-columns: 1fr;
  }

  /* Contenedor con padding lateral */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  section {
    padding: 3.5rem 1rem;
  }

  .page-hero {
    padding: 3rem 1rem;
  }

  .cta-banner {
    padding: 3rem 1rem;
  }
}

@media (max-width: 768px) {

  /* 1. CORTAR DE RAÍZ EL SCROLL HORIZONTAL */
  html,
  body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
  }

  header {
    position: sticky !important;
    top: 0;
    z-index: 9999;
    width: 100%;
  }

  .whatsapp-tooltip {
    display: none !important;
  }

  .mobile-nav {
    display: none;
    position: fixed !important;
    top: 107px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 107px) !important;
    height: calc(100dvh - 107px) !important;
    background: var(--white);
    z-index: 9998;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
  }

  .mobile-nav.open {
    display: block;
  }

  /* FOOTER: Evitar que el texto legal se corte */
  .footer-bottom {
    flex-direction: column !important;
    padding: 1.5rem 1rem;
    height: auto;
  }

  .footer-bottom span {
    white-space: normal !important;
    /* Permite saltos de línea */
    display: block;
    line-height: 1.5;
    text-align: center;
  }

  /* WHATSAPP: Quitar bocadillo que ensancha la web */
  .whatsapp-tooltip {
    display: none !important;
  }
}

@media (max-width: 600px) {

  .hero {
    min-height: 50vh;
    
  }

  html,
  body {
    overflow-x: clip !important;
    width: 100%;
    position: relative;
  }

  header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Altura exacta */
    background: var(--white) !important;
    z-index: 9999 !important;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .hamburger {
    display: flex !important;
  }

  .emergency-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .emergency-info {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-inner {
    width: 100%;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    display: flex !important;
    align-items: center;
    z-index: 10000;
  }

  /* El Menú que no se escapa */
  .mobile-nav {
    position: fixed !important;
    top: 60px !important;
    /* Empieza justo donde acaba el header */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    background: var(--white);
    z-index: 9998;
    /* Un nivel por debajo del header */
    overflow-y: auto;
    padding: 2rem 1.5rem;
    display: none;
  }

  .mobile-nav.open {
    display: block !important;
  }

  body {
    padding-top: 60px;
  }

  /* Footer que no se corta */
  .footer-bottom {
    flex-direction: column !important;
    text-align: center;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
    height: auto;
  }

  .footer-bottom span {
    display: block;
    line-height: 1.6;
    white-space: normal !important;
    word-wrap: break-word;
  }

  /* Espaciado y Visibilidad */
  section {
    padding: 3rem 1rem;
  }

  .hero-content,
  .page-hero,
  .cta-banner {
    padding: 2.5rem 1rem;
  }

  .nav-inner {
    height: 60px;
  }

  .logo-sub {
    display: none;
  }

  /* Grids a 1 columna para que nada se vea apretado */
  .form-row,
  .footer-grid,
  .rs-grid,
  .blog-grid,
  .services-grid,
  .values-grid,
  .values-grid-3col,
  .offices-grid,
  .office-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

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

  /* Botones en vertical */
  .hero-actions,
  .cta-banner .btn-actions,
  .btn-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hero-actions .btn,
  .cta-banner .btn-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* WhatsApp y Modales */
  .whatsapp-tooltip {
    display: none !important;
  }

  .modal-box {
    width: 95% !important;
    max-height: 85vh;
    padding: 1.5rem;
  }

  /* Ajustes de Slider y Cards */
  .featured-slide {
    height: 300px;
  }

  .split-img {
    height: 220px;
  }

  .pyme-badge-wrap {
    flex-direction: column;
    text-align: center;
  }

  /* Tipografía */
  h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .stats-grid--5 {
    grid-template-columns: repeat(6, 1fr);
  }
  .stats-grid--5 > div:nth-child(1) { grid-column: 1 / 3; }
  .stats-grid--5 > div:nth-child(2) { grid-column: 3 / 5; }
  .stats-grid--5 > div:nth-child(3) { grid-column: 5 / 7; }
  .stats-grid--5 > div:nth-child(4) { grid-column: 2 / 4; }
  .stats-grid--5 > div:nth-child(5) { grid-column: 4 / 6; }

  .stat-num {
    font-size: 1.7rem;
  }

  .stat-label {
    font-size: .68rem;
  }
}

/* ══════════════ BOTÓN ADMIN GLOBAL ══════════════ */
#bns-open-admin {
  position: fixed;
  bottom: 10px;
  left: 10px;
  opacity: 0.03;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #ddd;
  color: #555;
  font-size: .72rem;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--sans);
  letter-spacing: .04em;
  transition: all .2s;
}

#bns-open-admin:hover {
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* ══════════════ ACCESIBILIDAD ══════════════ */

/* Ocultar el anillo de foco con ratón, mostrarlo con teclado */
:focus:not(:focus-visible) {
  outline: none;
}

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

/* Saltar al contenido principal (navegación por teclado) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--crimson);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  font-size: .9rem;
  transition: top .15s;
}

.skip-link:focus {
  top: 0;
}

/* Alto contraste: reforzar indicador de foco */
@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid ButtonText;
  }
}

/* ══════════════════════════════════════════
   VARIANTE GRIS
   Alternativa a los acentos dorados.
   Para volver al dorado: quitar class="theme-grey" del <body>.
   Para usar el dorado: no añadir la clase (o quitarla).
   ══════════════════════════════════════════ */
body.theme-grey {
  --gold: var(--grey);       /* #939393 */
  --gold-lt: var(--grey-lt); /* #C0C0C0 */
}

body.theme-grey .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(147, 147, 147, .4);
}

body.theme-grey .pyme-badge-wrap {
  box-shadow: 0 4px 16px rgba(147, 147, 147, .15);
}

/* Enlace "Inicio" del breadcrumb en dorado */
body.theme-grey .page-hero .breadcrumb a {
  color: #C4982A;
}

/* Botón "Descargar Parte Amistoso" en dorado */
body.theme-grey .card-pdf .btn-primary {
  background: #C4982A;
  border-color: #C4982A;
  color: var(--crimson-dk);
}

body.theme-grey .card-pdf .btn-primary:hover {
  background: #e6c060;
  border-color: #e6c060;
  box-shadow: 0 6px 20px rgba(196, 152, 42, .4);
}

/* Números del stats bar en dorado */
body.theme-grey .stat-num {
  color: #C4982A;
}

/* Eyebrows de sección y hero en amarillo aunque el resto sea gris */
body.theme-grey .section-eyebrow,
body.theme-grey .hero-eyebrow {
  color: #C4982A;
}

body.theme-grey .section-eyebrow::before,
body.theme-grey .section-eyebrow::after,
body.theme-grey .hero-eyebrow::before {
  background: #C4982A;
}

/* Marca de agua decorativa en las tarjetas de Personal y Patrimonio */
.seg-cards-grid .seg-why-box {
  position: relative;
  overflow: hidden;
}

.seg-cards-grid .seg-why-box::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 280px;
  height: 280px;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  filter: brightness(0);
  opacity: 0.12;
  pointer-events: none;
}

.seg-cards-grid .seg-why-box > * {
  position: relative;
  z-index: 1;
}

#hogar-comunidades .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/hogaComunidades.png');
  right: 20px;
  bottom: -60px;
}

#salud-vida .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/saludyVida.png');
}

#decesos .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/decesos.png');
}

#coches-motos .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/autos.png');
  right: 0;
  bottom: 10px;
}

#viajes .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/viajes.png');
}

/* Empresas, Deporte y Correduría — imágenes con fondo blanco: mix-blend-mode multiply */
#rc .seg-why-box::after,
#dyo .seg-why-box::after,
#ciberriesgos .seg-why-box::after,
#multirriesgo .seg-why-box::after,
#flotas .seg-why-box::after,
#construccion .seg-why-box::after,
#ilt .seg-why-box::after,
#federaciones .seg-why-box::after,
#eventos-deportivos .seg-why-box::after,
#deportistas .seg-why-box::after,
#correseguro .seg-why-box::after,
#siniestros .seg-why-box::after,
#auditoria .seg-why-box::after {
  filter: none;
  mix-blend-mode: multiply;
  opacity: 0.15;
  right: 10px;
  bottom: 10px;
}

#rc .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/rc.png');
}
#dyo .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/d&o.png');
}
#ciberriesgos .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/ciberriesgos.png');
}
#multirriesgo .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/multirriesgo.png');
}
#flotas .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/furgoneta.png');
}
#construccion .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/construccion.png');
}
#ilt .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/ILT.png');
}
#federaciones .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/federaciones.png');
}
#eventos-deportivos .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/eventos-deportivos.png');
}
#deportistas .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/deportistas.png');
}
#correseguro .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/correseguro.png');
}
#siniestros .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/gestion-siniestros.png');
}
#auditoria .seg-why-box::after {
  background-image: url('../imagenes/imagenesDecoracion/auditoria-polizas.png');
}

@media (max-width: 768px) {
  .seg-cards-grid .seg-why-box::after {
    width: 200px;
    height: 200px;
    right: -20px;
    bottom: -20px;
  }
}

