:root {
  color-scheme: light;
  --rojo: #b50e20;
  --rojo-oscuro: #8c0a19;
  --tinta: #1b2026;
  --secundario: #525b65;
  --borde: #d9dde1;
  --suave: #f4f5f6;
  --margen: clamp(1rem, 5vw, 5rem);
  --ancho: 85rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--tinta);
  background: white;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
button, a, summary, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #08749d; outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1, h2 {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.045em;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
[hidden] { display: none !important; }
.contenedor { width: min(calc(100% - var(--margen) * 2), var(--ancho)); margin-inline: auto; }
.seccion { padding-block: clamp(2.75rem, 5.5vw, 5.25rem); }
.rotulo {
  display: flex; align-items: center; gap: .55rem;
  color: var(--rojo); font-size: .77rem; font-weight: 750;
  letter-spacing: .13em; text-transform: uppercase; line-height: 1.4;
  margin-bottom: .65rem;
}
.rotulo::before { content: ""; width: 1.7rem; height: 2px; background: currentColor; flex: none; }
.icono {
  width: 1.2em; height: 1.2em; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.simbolos { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.boton, .enlace-flecha {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 2.75rem; font-weight: 700; line-height: 1.25; text-decoration: none;
}
.boton { background: var(--rojo); color: white; border: 1px solid transparent; border-radius: .45rem; padding: .7rem 1.05rem; }
.boton:hover { background: var(--rojo-oscuro); }
.enlace-flecha { color: var(--rojo); }
.enlace-flecha:hover, footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.saltar, .solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar:focus { z-index: 7; inset: .7rem auto auto .7rem; width: auto; height: auto; clip-path: none; background: white; padding: .65rem; }
.cabecera { background: white; border-bottom: 1px solid var(--borde); }
.cabecera-fila { min-height: 5.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.marca { display: block; flex: none; }
.marca img { width: 8.7rem; height: auto; }
.cabecera nav { display: flex; align-items: center; justify-content: center; gap: clamp(.65rem, 2.4vw, 2.25rem); }
.cabecera nav a { display: grid; align-items: center; min-height: 2.75rem; font-weight: 650; font-size: .95rem; text-decoration: none; }
.cabecera nav a:hover { color: var(--rojo); text-decoration: underline; text-underline-offset: .3em; }
.cabecera .boton { white-space: nowrap; }
.menu-movil { display: none; }
.portada {
  display: grid; align-items: center; position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(25rem, 34vw, 34rem); background: #171e24; color: white;
}
.portada > img { position: absolute; inset: 0 0 0 auto; width: 76%; height: 100%; object-fit: cover; object-position: 50% 53%; z-index: -3; }
.portada::before, .portada::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -2; }
.portada::before { background: linear-gradient(90deg, #171e24 24%, #171e24ed 34%, #171e2494 52%, #171e2412 78%); }
.portada::after { z-index: -1; background: linear-gradient(124deg, #a30b1c 0 1.25%, #d42732 1.25% 1.9%, transparent 1.9% 94%, #8c0a19 94% 96%, #bd1426 96%); }
.portada-contenido { padding-block: clamp(2.75rem, 6vw, 6rem); }
.portada-texto { max-width: 48rem; }
.portada .rotulo { color: #ffb2b4; }
.portada h1 { font-size: clamp(2.5rem, 5.6vw, 5.4rem); font-style: italic; line-height: 1.06; }
.portada h1 em {
  position: relative; isolation: isolate; display: table; margin-top: .07em; margin-left: -.08em;
  padding: 0 .26em .1em .19em; line-height: 1.15; color: white;
}
.portada h1 em::before {
  position: absolute; content: ""; inset: 0; z-index: -1;
  background: linear-gradient(106deg, #9b0b1a, #c0192b); clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
}
.portada-texto > p:not(.rotulo) { max-width: 31rem; margin-top: 1.1rem; font-size: clamp(1rem, 1.6vw, 1.16rem); text-wrap: pretty; }
.acciones { display: flex; flex-wrap: wrap; gap: .65rem; }
.acciones { margin-top: 1.5rem; }
.acciones .acceso-plano { background: #fff6e2; color: #521522; border-color: #fff6e2; }
.acciones .acceso-plano:hover { background: #ffe3a8; border-color: #ffe3a8; }
.portada-servicios { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .45rem; color: white; font-weight: 650; text-underline-offset: .22em; }
.boton.transparente { border-color: #ffffffa6; background: #171e24a6; }
.boton.transparente:hover { background: #171e24; }
footer { background: #171d23; color: white; }
#pie-de-pagina { position: relative; isolation: isolate; background: #131a20; }
.pie-fondo { position: absolute; z-index: -1; inset: 0 0 auto; height: min(100%, 21rem); pointer-events: none; }
.pie-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 61%; filter: saturate(.65); }
.pie-fondo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, #131a20, transparent 47%),
    linear-gradient(90deg, #0b131bdc 2%, #1017208c 38%, #101a22b0 63%, #131a20 99%);
}
.pie {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(17rem, .8fr);
  align-items: center; gap: 1.7rem clamp(2rem, 6vw, 6rem); padding-block: clamp(1.6rem, 3.5vw, 3.25rem) 1.2rem;
}
.pie-marca { color: #fff8ed; line-height: 1.15; }
.pie-marca > span {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem;
  color: #e6c6b5; font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.pie-marca > span::before { content: ""; width: 1.5rem; height: 2px; background: #e05860; }
.pie-marca strong { font-size: clamp(1.65rem, 3.4vw, 3rem); font-weight: 750; letter-spacing: -.045em; }
.pie-marca sup { margin-left: .28em; color: #bac2c7; font-size: .72rem; vertical-align: super; }
.pie-contactos { display: flex; flex-wrap: wrap; gap: .4rem .55rem; margin-top: .85rem; }
.pie-contactos a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .35rem .8rem;
  border: 1px solid #67727a; border-radius: .6rem; background: #131b23df; color: #f2f4f4;
  font-size: .9rem; font-weight: 600; text-decoration: none;
}
.pie-contactos .icono { width: 1.12rem; height: 1.12rem; }
.pie-contactos a:first-child .icono { color: #9cc7ff; }
.pie-contactos a[href*="wa.me"] .icono { color: #82d8ad; }
.pie-contactos a:is(:hover, :focus-visible) { background: #28323a; border-color: #84919a; }
.pie-menu {
  padding: .95rem 1.15rem .5rem; border: 1px solid #586268; border-radius: .75rem;
  background: #172128f2;
}
.pie-menu h2 {
  margin-bottom: .4rem; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; color: #edd5bc;
}
.pie-menu ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.15rem;
  margin: 0; padding: 0; list-style: none;
}
.pie-menu li { border-top: 1px solid #ffffff26; }
.pie-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: .35rem;
  min-height: 2.75rem; padding: .35rem .12rem; color: #f0f3f4;
  font-size: .94rem; font-weight: 600; line-height: 1.25; text-decoration: none;
}
.pie-menu a::after {
  content: ""; width: .38rem; height: .38rem; flex: none; margin-right: .18rem;
  border: solid #91a2ac; border-width: 1px 1px 0 0; transform: rotate(45deg);
}
.pie-menu a:is(:hover, :focus-visible) { color: #ffd2ab; text-decoration: underline; text-underline-offset: .22em; }
.pie-base {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .65rem 2rem; padding: 1.1rem 4.5rem 0 0; border-top: 1px solid #46515a;
}
.pie-credito {
  display: flex; align-items: center; gap: .95rem; padding: .85rem 1rem;
  border: 1px solid #364650; border-radius: .75rem; background: #1d272f;
  color: #f3f6f8; text-decoration: none;
}
.pie-simbolo {
  position: relative; flex: none; width: clamp(3.15rem, 6vw, 3.9rem); aspect-ratio: 4 / 3; overflow: hidden;
}
/* El crédito ya incluye el nombre del estudio. El encuadre muestra el símbolo CS del logo original. */
.pie-simbolo img { position: absolute; top: -1.8%; left: -28%; width: 156%; max-width: none; height: auto; }
.pie-autoria { display: grid; gap: .15rem; color: #c8d1d6; font-size: .84rem; line-height: 1.4; }
.pie-autoria strong { color: #fff; font-size: 1rem; }
.pie-dominio { color: #a2ddf6; text-decoration: underline; text-underline-offset: .2em; }
.pie-credito:is(:hover, :focus-visible) { border-color: #7ca4b9; background: #24323c; }
.pie-arriba {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 2.75rem; padding-inline: .1rem; color: #c7d0d7; font-size: .84rem;
  text-decoration: underline; text-underline-offset: .2em;
}
.pie-arriba:hover { color: white; }
.pie-accesos { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.1rem; }
@media (max-width: 48rem) {
  .pie { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding-top: 0; }
  .pie-empresa { display: grid; align-content: end; min-height: 10.75rem; padding-top: 2.5rem; }
  .pie-fondo { height: 15.5rem; }
  .pie-fondo img { object-position: 55% 52%; }
  .pie-fondo::after { background: linear-gradient(0deg, #131a20 0%, #101820bb 34%, #10182055 85%), linear-gradient(90deg, #0c1219bb, transparent 85%); }
  .pie-menu { max-width: 32rem; }
  .pie-base { padding-right: 0; flex-direction: column; align-items: flex-start; }
  .pie-accesos { padding-right: 3.25rem; }
  .pie-credito { width: min(100%, 25rem); }
}
@media (max-width: 54rem) {
  .cabecera-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .5rem; padding-top: .25rem; }
  .marca { justify-self: start; }.marca img { width: 6.8rem; }
  .cabecera nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: .25rem; border-top: 1px solid #ebedef; }
  .cabecera nav a { font-size: clamp(.78rem, 2.6vw, .93rem); }
  .cabecera .boton { justify-self: end; font-size: .9rem; }
  .cabecera-fila:has(.menu-movil:not([hidden])) {
    position: relative; grid-template-columns: minmax(4.5rem, 1fr) minmax(0, auto) auto;
    min-height: auto; gap: .45rem; padding-block: .5rem;
  }
  .cabecera-fila:has(.menu-movil:not([hidden])) > .boton {
    grid-column: 2; grid-row: 1; min-width: 0; padding: .54rem .66rem;
    text-align: center; white-space: normal; overflow-wrap: anywhere;
  }
  .menu-movil {
    display: grid; place-items: center; grid-column: 3; grid-row: 1;
    width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid #ebc6ca;
    border-radius: .45rem; background: #fff5f5; color: var(--rojo-oscuro);
  }
  .menu-movil:is(:hover, [aria-expanded="true"]) { background: #ffe8ea; border-color: var(--rojo); }
  .menu-movil .icono { width: 1.35rem; height: 1.35rem; }
  .menu-movil[aria-expanded="false"] .menu-cerrar,
  .menu-movil[aria-expanded="true"] .menu-abrir { display: none; }
  .menu-movil:not([hidden]) + nav {
    position: absolute; z-index: 6; grid-area: auto; inset: calc(100% + .35rem) 0 auto;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-height: calc(100dvh - 5rem);
    overflow: auto; padding: .35rem .65rem; background: white;
    border: 1px solid var(--borde); border-top: 3px solid var(--rojo);
    border-radius: .65rem; box-shadow: 0 .55rem 1.5rem #1b20262b;
  }
  .menu-movil:not([hidden]) + nav a {
    padding-inline: .55rem; font-size: .96rem; overflow-wrap: anywhere;
  }
  .menu-movil:not([hidden]) + nav a + a { border-top: 1px solid #ebedef; }
  .menu-movil:not([hidden]) + nav a:focus-visible { outline-offset: -3px; }
}
@media (max-width: 24rem) {
  .cabecera-fila:has(.menu-movil:not([hidden])) > .boton .icono { display: none; }
}
@media (max-width: 47.5rem) {
  .portada { min-height: 0; }
  .portada > img { width: 100%; object-position: 65% 52%; }
  .portada::before { background: linear-gradient(90deg, #141b21f2, #141b21a8 55%, #141b2150); }
  .portada-contenido { padding-block: clamp(2.65rem, 8vw, 4.5rem); }
  .portada h1 { font-size: clamp(2.25rem, 8.3vw, 3.75rem); }
  .acciones { margin-top: 1.1rem; gap: .5rem; }
  .acciones .boton { padding-inline: .8rem; font-size: .92rem; }
}
@media (max-width: 24rem) {
  .acciones { column-gap: .3rem; }
  .acciones .boton { padding-inline: .4rem; gap: .3rem; }
  .acciones .acceso-plano .icono { width: 1rem; height: 1rem; }
  .acciones a[href="#cotizar"] .icono { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: 0s !important; }
}
