

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] { display: none !important; }

.solo-lectores {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html, body {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@supports not (height: 100dvh) {
  html, body { height: 100vh; }
}

:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

button { font: inherit; color: inherit; }
a { color: inherit; }

.menu-btn {
  position: fixed;
  top: calc(0.85rem + env(safe-area-inset-top, 0px));
  right: calc(0.9rem + env(safe-area-inset-right, 0px));
  z-index: 60;
  width: var(--tap-min);
  height: var(--tap-min);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(0, 15, 54, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.menu-btn:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.12); }

.menu-icono { display: flex; flex-direction: column; gap: 5px; }
.menu-icono span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 6, 26, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }

@media (pointer: fine) {
  .menu-overlay { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}

.menu-panel {
  position: relative;
  width: min(400px, 88vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: calc(3.2rem + env(safe-area-inset-top, 0px)) 1.6rem
           calc(1.6rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #0A1C4E 0%, var(--bg-dark) 100%);
  border-left: 1px solid var(--border-color);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
}
.menu-overlay.is-open .menu-panel { transform: none; }

.menu-close {
  position: absolute;
  top: calc(0.9rem + env(safe-area-inset-top, 0px));
  right: 1rem;
  width: var(--tap-min);
  height: var(--tap-min);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.menu-close:hover { color: var(--accent); }
.menu-close svg { width: 24px; height: 24px; }

.menu-nav { display: flex; flex-direction: column; }

.menu-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.5rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.menu-link:hover { color: var(--accent); padding-left: 0.5rem; }

.menu-link[aria-current="page"] { color: var(--accent-light); }
.menu-link[aria-current="page"]::before {
  content: '';
  width: 8px; height: 8px;
  margin-right: 0.6rem;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.menu-pie {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.menu-logo { height: 62px; width: auto; object-fit: contain; }

.menu-redes { display: flex; gap: 0.5rem; }

.menu-datos {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.menu-datos a { color: var(--accent-light); text-decoration: none; }
.menu-datos a:hover { text-decoration: underline; text-underline-offset: 3px; }

.menu-legal { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; }
.menu-legal a {
  font-size: 0.72rem;
  color: rgba(147, 160, 194, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}
.menu-legal a:hover { color: var(--accent-light); }

body.menu-abierto .cp,
body.menu-abierto .btn-cloud { animation-play-state: paused; }

.vitrina {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: radial-gradient(circle at 50% 58%, #081B4C 0%, var(--bg-dark) 66%);
  padding: calc(0.8rem + env(safe-area-inset-top, 0px))
           calc(0rem + env(safe-area-inset-right, 0px))
           calc(0.9rem + env(safe-area-inset-bottom, 0px))
           calc(0rem + env(safe-area-inset-left, 0px));
  
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@supports not (height: 100dvh) {
  .vitrina { height: 100vh; }
}

.cloud-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.cp {
  position: absolute;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(65px);
  border-radius: 50%;
  opacity: 0.4;
  animation: drift 20s linear infinite alternate;
  will-change: transform;
}
.cp1 { top: 8%;  left: -10%;  width: 320px; height: 320px; }
.cp2 { bottom: 12%; right: -15%; width: 380px; height: 380px; animation-delay: -5s; }
.cp3 { top: 45%; right: 18%;  width: 240px; height: 240px; animation-delay: -10s; }

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(25px, -18px) rotate(3deg); }
  100% { transform: translate(-15px, 12px) rotate(-2deg); }
}

.vitrina-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-height: 940px;
  width: 100%;
  max-width: 560px;
  text-align: center;
  gap: 0.35rem;
}
.vitrina-content > * { max-width: 100%; }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-25px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(35px);  } to { opacity: 1; transform: none; } }

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  animation: fadeDown 0.8s var(--ease) both;
}

.brand-logo {
  display: block;
  
  height: clamp(100px, 17dvh, 170px);
  width: auto;
  max-width: min(92vw, 460px);
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55));
}

.brand-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.6px;
  padding: 0 1.25rem;
}

.redes {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.red-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  touch-action: manipulation;
}
.red-btn:hover {
  color: var(--accent-light);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.red-btn svg { width: 18px; height: 18px; fill: currentColor; }

.filtros {
  display: inline-flex;
  justify-content: center;
  gap: 0.35rem;
  animation: fadeUp 0.9s var(--ease) 0.1s both;
}
.filtros:empty { display: none; }

.filtro {
  min-height: 36px;
  padding: 0.28rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  touch-action: manipulation;
}
.filtro:hover { color: var(--text-main); border-color: var(--border-color); }
.filtro.active {
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--accent);
}

.slider-zone {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 200px;
  display: flex;
  align-items: stretch;
  animation: fadeUp 0.9s var(--ease) 0.15s both;
}

.slider {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  
  padding: 0.4rem max(7vw, 1.1rem) 0.9rem;
  scrollbar-width: none;               
  -webkit-overflow-scrolling: touch;
}
.slider::-webkit-scrollbar { display: none; }

.tarjeta {
  flex: 0 0 min(400px, 86%);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 1rem 1.1rem 1.05rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(10, 28, 78, 0.55) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  touch-action: pan-x;
}
.tarjeta:hover {
  transform: translateY(-4px);
  border-color: var(--border-color);
  box-shadow: var(--shadow-card), 0 0 30px rgba(var(--accent-rgb), 0.18);
}

.tarjeta:only-child { margin-inline: auto; }

.tarjeta-foto {
  flex: 0 0 52%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.tarjeta-info {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
}

.tarjeta-foto picture { display: contents; }

.tarjeta-foto img {
  max-height: 100%;
  max-width: 88%;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 22px rgba(var(--accent-rgb), 0.28));
}

.tarjeta-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--border-color);
  padding: 0.22rem 0.8rem;
  border-radius: var(--radius-full);
}

.tarjeta-nombre {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 1.5px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-main);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

.tarjeta-linea {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.4px;
  line-height: 1.3;
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: var(--tap-min);
  height: var(--tap-min);
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.flecha svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
}
.flecha:hover { color: var(--accent); transform: translateY(-50%) scale(1.18); }
.flecha:active { transform: translateY(-50%) scale(0.95); }
.flecha-prev { left: 0; }
.flecha-next { right: 0; }
@media (pointer: fine) { .flecha { display: flex; } }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 1rem;
  animation: fadeUp 0.9s var(--ease) 0.22s both;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.35rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  touch-action: manipulation;
}
.chip:hover { color: var(--text-main); border-color: var(--border-color); }
.chip.active {
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--accent);
}

.cta-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0 1.25rem;
  animation: fadeUp 0.9s var(--ease) 0.3s both;
}

.btn-cloud {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 50%, var(--accent-deep) 100%);
  border: 1.5px solid var(--accent-light);
  padding: 0.95rem 2.2rem;
  min-height: var(--tap-min);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  max-width: 380px;
  text-decoration: none;
  touch-action: manipulation;
  animation: attentionPulse 3s infinite ease-in-out;
}
@keyframes attentionPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.btn-cloud:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 45px rgba(var(--accent-rgb), 0.65), inset 0 2px 6px rgba(255, 255, 255, 0.6);
  animation-play-state: paused;
}
.btn-cloud:active { transform: scale(0.98); animation-play-state: paused; }

.btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 2px;
  color: #041028;
}

.nota-pie {
  font-size: 0.72rem;
  color: rgba(244, 244, 244, 0.55);
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1.1rem;
  padding: 0 1.25rem;
}
.legal:empty { display: none; }
.legal a {
  font-size: 0.68rem;
  color: rgba(147, 160, 194, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.4px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}
.legal a:hover { color: var(--accent-light); }

.cookies {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.1rem;
  padding: 0.85rem calc(1.1rem + env(safe-area-inset-right, 0px))
           calc(0.85rem + env(safe-area-inset-bottom, 0px))
           calc(1.1rem + env(safe-area-inset-left, 0px));
  background: rgba(4, 16, 40, 0.97);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.cookies.is-visible { transform: none; }

@media (pointer: fine) {
  .cookies { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

.cookies-texto {
  flex: 1 1 320px;
  max-width: 640px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.cookies-texto a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.cookies-texto a:hover { color: var(--accent); }

.cookies-botones { display: flex; gap: 0.5rem; flex-shrink: 0; }

.cookies-btn {
  min-height: 40px;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  touch-action: manipulation;
}
.cookies-btn:hover { transform: translateY(-1px); }

.cookies-si {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  border: 1.5px solid var(--accent-light);
  color: #041028;
}
.cookies-no {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.cookies-no:hover { border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .cookies { transition: none; }
}

.noscript-box {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}
.noscript-box a {
  background: var(--accent);
  color: #041028;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
}

@media (max-height: 740px) {
  .brand-logo     { height: clamp(90px, 15dvh, 140px); }
  .brand-sub      { font-size: 0.8rem; }
  .red-btn        { width: 36px; height: 36px; }
  .red-btn svg    { width: 16px; height: 16px; }
  .tarjeta-nombre { font-size: 1.35rem; }
  .btn-cloud      { padding: 0.75rem 1.8rem; }
  .btn-inner      { font-size: 1.2rem; }
  .nota-pie       { font-size: 0.66rem; }
}

@media (max-height: 620px) {
  .brand-sub { display: none; }
  .nota-pie  { display: none; }
  .legal     { display: none; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .vitrina-content {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    align-items: center;
    gap: 0.3rem 1rem;
    max-width: 940px;
  }
  .brand-block  { grid-row: span 3; }
  .brand-logo   { height: min(200px, 52dvh); }
  .brand-sub    { display: none; }
  .slider-zone, .chips, .cta-zone { grid-column: 2; }
  .slider       { padding: 0.3rem 1rem 0.5rem; }
  .tarjeta      { flex-basis: min(340px, 92%); }
  .tarjeta-nombre { font-size: 1.2rem; }
  .btn-inner    { font-size: 1.05rem; }
  .btn-cloud    { padding: 0.55rem 1.4rem; }
  .nota-pie     { display: none; }
}

@media (min-width: 1024px) {
  .vitrina-content { max-width: 1180px; }

  .brand-block,
  .filtros,
  .chips,
  .cta-zone,
  .legal { max-width: 640px; margin-inline: auto; }

  .tarjeta { flex: 0 0 340px; }

  .slider {
    justify-content: safe center;
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) and (min-height: 800px) {
  .tarjeta-foto { flex-basis: 54%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cp, .btn-cloud { animation: none !important; }
  .slider { scroll-behavior: auto; }
}
