:root {
  --fondo: #0b0a0b;
  --superficie: #141213;
  --superficie-2: #1a1718;
  --borde: rgba(255, 255, 255, 0.08);
  --borde-fuerte: rgba(255, 255, 255, 0.16);
  --texto: #f4eff1;
  --texto-suave: #b9aeb3;
  --texto-tenue: #8d8287;
  --rojo: #c4122c;
  --rojo-claro: #ec3448;
  --vino: #6e1b37;
  --rosa: #c8506e;
  --radio: 18px;
  --sombra: 0 30px 70px -35px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --bs-body-bg: var(--fondo);
  --bs-body-color: var(--texto);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-link-color-rgb: 236, 52, 72;
  --bs-link-hover-color-rgb: 255, 120, 132;
  --bs-border-color: var(--borde);
  color-scheme: dark;
}

body {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(196, 18, 44, 0.18), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, rgba(110, 27, 55, 0.22), transparent 70%),
    var(--fondo);
  min-height: 100vh;
}

::selection { background: var(--rojo); color: #fff; }

.barra {
  background: rgba(11, 10, 11, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
}

.barra .navbar-brand img { width: 34px; height: 34px; border-radius: 50%; }
.barra .navbar-brand span { font-weight: 800; letter-spacing: -0.02em; }
.barra .nav-link { color: var(--texto-suave); font-weight: 500; }
.barra .nav-link:hover, .barra .nav-link.active { color: var(--texto); }

.portada {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  min-height: 300px;
  background: center / cover no-repeat url("../img/banner.jpg");
  box-shadow: var(--sombra);
}

.portada::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 11, 0) 35%, rgba(11, 10, 11, 0.92) 100%);
}

.perfil {
  position: relative;
  margin-top: -88px;
  z-index: 2;
}

.perfil .avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 5px solid var(--fondo);
  box-shadow: 0 0 0 2px var(--rojo), 0 20px 50px -10px rgba(196, 18, 44, 0.5);
  background: var(--fondo);
}

.perfil h1 { font-weight: 800; letter-spacing: -0.03em; }
.perfil h1 .punto { color: var(--rojo-claro); }
.perfil p { color: var(--texto-suave); max-width: 620px; }

.redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--borde-fuerte);
  color: var(--texto);
  font-size: 1.2rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.redes a:hover { background: var(--rojo); border-color: var(--rojo); transform: translateY(-2px); }

.titulo-seccion {
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.titulo-seccion::before {
  content: "";
  width: 10px;
  height: 26px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--rojo-claro), var(--vino));
}

.enlace {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--borde-fuerte);
  background: linear-gradient(135deg, rgba(26, 23, 24, 0.95), rgba(20, 18, 19, 0.95));
  color: var(--texto);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.enlace .logo-app { width: 1.9rem; height: 1.9rem; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.enlace i { font-size: 1.4rem; color: var(--rojo-claro); width: 1.6rem; text-align: center; }
.enlace small { display: block; font-weight: 400; color: var(--texto-tenue); }
.enlace .flecha { margin-left: auto; color: var(--texto-tenue); font-size: 1rem; }

.enlace:hover {
  color: var(--texto);
  transform: translateY(-2px);
  border-color: var(--rojo);
  box-shadow: 0 14px 40px -18px rgba(196, 18, 44, 0.8);
}

.enlace.principal {
  background: linear-gradient(135deg, #8a0f24, #c4122c);
  border-color: transparent;
}

.enlace.principal i, .enlace.principal small, .enlace.principal .flecha { color: #fff; }

.tarjeta {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s, border-color 0.2s;
}

.tarjeta:hover { transform: translateY(-3px); border-color: var(--borde-fuerte); }
.tarjeta img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.tarjeta .card-body { padding: 1rem 1.15rem 1.2rem; }
.tarjeta h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.tarjeta p { color: var(--texto-suave); font-size: 0.92rem; }
.tarjeta a { color: inherit; text-decoration: none; }

.etiqueta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(196, 18, 44, 0.16);
  color: var(--rojo-claro);
  border: 1px solid rgba(196, 18, 44, 0.35);
}

.fecha { color: var(--texto-tenue); font-size: 0.82rem; }

.novedades li {
  position: relative;
  padding: 0 0 1.4rem 1.6rem;
  border-left: 2px solid var(--borde-fuerte);
  list-style: none;
}

.novedades li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rojo);
  box-shadow: 0 0 0 4px rgba(196, 18, 44, 0.2);
}

.novedades li:last-child { border-left-color: transparent; }
.novedades strong { display: block; }
.novedades span { color: var(--texto-suave); }

.pie {
  border-top: 1px solid var(--borde);
  color: var(--texto-tenue);
  font-size: 0.9rem;
}

.pie a { color: var(--texto-suave); }

.articulo { max-width: 820px; }
.articulo h1 { font-weight: 800; letter-spacing: -0.03em; }
.articulo h2 { font-weight: 800; margin-top: 2.6rem; font-size: 1.5rem; }
.articulo p, .articulo li { color: #ddd3d6; line-height: 1.75; font-size: 1.04rem; }
.articulo .resumen { font-size: 1.15rem; color: var(--texto-suave); }

.articulo figure img {
  border-radius: 14px;
  box-shadow: var(--sombra);
  width: 100%;
}

.articulo figcaption { color: var(--texto-tenue); font-size: 0.88rem; margin-top: 0.5rem; }

.articulo .table { --bs-table-bg: var(--superficie); --bs-table-color: var(--texto); --bs-table-border-color: var(--borde-fuerte); }
.articulo .table th { color: var(--rojo-claro); font-weight: 700; }

.nota {
  border-left: 4px solid var(--rojo);
  background: rgba(196, 18, 44, 0.08);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
}

.video {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
}

.comparar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.comparar figure { margin: 0; }

.con-flor { position: relative; }
.con-flor > header, .con-flor > main, .con-flor > footer { position: relative; z-index: 1; }

.fondo-flor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(1100px, 95vh);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
}

.fondo-flor canvas { width: 100%; height: 100%; display: block; }

.pie { background: transparent; }

@media (max-width: 575px) {
  .perfil { margin-top: -70px; }
  .perfil .avatar { width: 128px; height: 128px; }
  .portada { min-height: 200px; }
  .comparar { grid-template-columns: 1fr; }
}
