/* Barra roja fija, menú fijo y portada. */

.cabecera {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  color: #fff;
}

.tope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  height: var(--tope);
  min-height: var(--tope);
  padding: 0 1.3rem;
  background: var(--rojo);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
}

.tope a {
  color: #fff;
  text-decoration: none;
}

.tope svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.tope__lugar,
.tope__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--sobre);
}

.tope a.tope__wa {
  color: var(--sobre);
}

.tope svg.bandera {
  width: 28px;
  height: 18px;
  border-radius: 2px;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3.5px #111;
}

.tope a.tope__proyecto {
  display: inline-flex;
  align-items: center;
  flex: 0 0 360px;
  width: 360px;
  max-width: 100%;
  overflow: hidden;
  padding: 0.48rem 0;
  border-radius: 999px;
  background: #6d28d9;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tope__proyecto-pista {
  display: inline-flex;
  width: max-content;
  animation: proyecto-desliza 22s linear infinite;
}

.tope__proyecto-pista span {
  padding-right: 2.8rem;
}

@keyframes proyecto-desliza {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tope a.tope__proyecto:hover {
  background: #111;
  color: #fff;
  opacity: 1;
}

.tope__wa:hover {
  opacity: 0.85;
}

.cabecera__interior {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--cabecera);
  padding: 0 1.4rem;
}

.cabecera.is-solida .cabecera__interior {
  background: rgba(16, 10, 10, 0.94);
}

.logo {
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  color: var(--tinta-clara);
  transform: scale(1.18);
}

.nav a.is-activo {
  color: var(--tinta-clara);
}

.nav a.is-activo:hover {
  color: var(--tinta-clara);
  transform: scale(1.18);
}

.tema {
  position: relative;
}

.tema__boton {
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
}

.tema__boton:hover,
.tema__boton[aria-expanded="true"] {
  color: var(--tinta-clara);
}

.tema__panel {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  z-index: 5;
  display: grid;
  gap: 0.2rem;
  min-width: 196px;
  padding: 0.45rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.tema__panel[hidden] {
  display: none;
}

.tema__muestra {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 0.45rem 0.5rem;
  color: #1c1915;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.tema__muestra:hover,
.tema__muestra[aria-pressed="true"] {
  background: #f4f0e8;
}

.tema__punto {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.16);
}

.tema__punto--mostaza { background: #ffd500; }
.tema__punto--rojo { background: #f60003; }
.tema__punto--rosado { background: #ffd1dc; }
.tema__punto--cana { background: #c6ef3a; }
.tema__punto--marino { background: #1b3a6b; }
.tema__punto--lila { background: #e6d5f5; }

.cabecera__lado {
  display: flex;
  align-items: center;
}

.cabecera__cta {
  padding: 0.7rem 0.95rem;
  border-radius: 8px;
  background: var(--rojo);
  color: var(--sobre);
}

.cabecera__cta:hover,
.nav a.cabecera__cta.is-activo:hover {
  background: var(--rojo-oscuro);
  color: var(--sobre);
  transform: scale(1.12);
}

.nav a.cabecera__cta.is-activo {
  background: var(--rojo-oscuro);
  color: var(--sobre);
}

.menu {
  display: none;
  color: #fff;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.portada {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 9.2rem 1.5rem 4.5rem;
  background:
    linear-gradient(180deg, rgba(16, 8, 8, 0.5), rgba(16, 8, 8, 0.34) 42%, rgba(16, 8, 8, 0.55)),
    url("../assets/portada-negocio.jpg") center 42% / cover no-repeat;
  color: #fff;
}

.portada::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 46%, rgba(12, 6, 6, 0.28), transparent 62%);
  pointer-events: none;
}

.portada__contenido {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  margin: 0;
  text-align: left;
}

.portada h1 {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.portada h1 span {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.portada h1 strong {
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  font-weight: 400;
  color: var(--tinta-clara);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.portada p {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.portada__acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.portada__acciones a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--rojo);
  color: var(--sobre);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portada__acciones a:hover {
  background: var(--rojo-oscuro);
}

.servicio,
.cintas,
.cinta,
.cierre,
.aparato,
.coleccion {
  scroll-margin-top: calc(var(--tope) + var(--cabecera) + 16px);
}
