/* ==========================================================================
   Scrivia — ajustes de marca sobre el framework "Slides" (ThemeWagon /
   Designmodo), el mismo framework usado en el resto de landings de la
   familia de productos (fidelizoo.scrivia.es, bookly.scrivia.es, ...).

   Se carga DESPUÉS de assets/vendor/slides/slides.min.css: mismos
   selectores, misma especificidad → gana por orden de aparición, incluso
   contra los !important del framework (ej. .blue, .green).
   ========================================================================== */

:root {
  --sv-navy: #0f1f38;
  --sv-navy-dark: #091426;
  --sv-cream: #faf8f4;
  --sv-gold: #c9a84c;
}

/* ---------- Tipografía de marca ---------- */
body,
.button,
input,
textarea,
select {
  font-family: "Hanken Grotesk", Roboto, sans-serif;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ---------- Botones: paleta Scrivia en vez del azul/verde genérico ---------- */
.blue,
.blue svg {
  background: var(--sv-navy) !important;
  color: #fff !important;
}
.blue svg { fill: #fff !important; }
.stroke.button.blue,
.text-blue { color: var(--sv-navy) !important; }
.stroke.button.blue { border-color: var(--sv-navy) !important; }

.green {
  background: var(--sv-gold) !important;
  color: var(--sv-navy-dark) !important;
}
.stroke.button.green,
.text-green { color: var(--sv-gold) !important; }
.stroke.button.green { border-color: var(--sv-gold) !important; }

.button.hollow {
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #fff !important;
}

.close .material-symbols-outlined {
  color: #fff;
  font-size: 22px;
}

/* ---------- Navegación ---------- */
.panel.top,
.panel.bottom {
  background: rgba(9, 20, 38, 0.55) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.panel .sections .menu li a,
.panel .left a,
.panel .right a { color: #fff; }

.sidebar { background: var(--sv-navy-dark) !important; }
.sidebar .mainMenu a,
.sidebar .subMenu a { color: #fff; }

/* Puntos de navegación lateral */
.side.pole .navigation li a,
.side .navigation li a { background: rgba(255, 255, 255, 0.45); }
.side.pole .navigation li.selected a,
.side .navigation li.selected a { background: #fff; }

/* ---------- Fondos propios (sin fotografía) ----------
   Ninguna slide usa imágenes — degradado de marca en vez de las fotos de
   stock que trae el framework por defecto, para no compartir el mismo
   fondo visual que las landings de cada producto individual. */
.background.solid-navy { background-color: var(--sv-navy); }
.background.brand-gradient {
  background:
    radial-gradient(circle at 22% 18%, rgba(201, 168, 76, 0.16) 0%, rgba(201, 168, 76, 0) 42%),
    radial-gradient(circle at 82% 78%, rgba(23, 51, 92, 0.9) 0%, rgba(9, 20, 38, 0) 55%),
    linear-gradient(160deg, #142744 0%, #0f1f38 45%, #091426 100%);
}

/* ---------- Retroceder también entra desde abajo ----------
   Ver assets/js/nav-direction.js. */
body.nav-backward .slide.before {
  transform: translate3d(0, 50%, 0) !important;
}

/* ---------- Reveal propio para elementos [class*="ae-N"] ---------- */
@keyframes svReveal {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.slide [class*="ae-"] {
  visibility: visible !important;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}
.slide.selected [class*="ae-"] {
  animation: svReveal 0.7s cubic-bezier(0.25, 0.1, 0.2, 1) both;
}
.slide.selected .ae-1 { animation-delay: 0.05s; }
.slide.selected .ae-2 { animation-delay: 0.15s; }
.slide.selected .ae-3 { animation-delay: 0.25s; }
.slide.selected .ae-4 { animation-delay: 0.35s; }
.slide.selected .ae-5 { animation-delay: 0.45s; }
.slide.selected .ae-6 { animation-delay: 0.55s; }
.slide.selected .ae-7 { animation-delay: 0.65s; }
.slide.selected .ae-8 { animation-delay: 0.75s; }

/* ---------- Rotador de productos (hero) ----------
   El ciclo (qué producto está activo) lo lleva assets/js/hero-cycle.js,
   que alterna la clase .is-active entre nombre/detalle. */
.brand-cycle {
  position: relative;
  display: block;
  min-height: 1.2em;
  text-align: center;
}
.brand-cycle span {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.7s ease;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 7vw, 80px);
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-cycle span.is-active {
  opacity: 1;
  position: relative;
  left: auto;
  transform: none;
}

/* ---------- Texto + enlace del producto activo (hero) ---------- */
.brand-detail {
  position: relative;
  display: block;
  min-height: 6.5em;
  max-width: 640px;
  margin: 0 auto;
}
.brand-detail > div {
  position: absolute;
  top: 0; left: 0; width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.brand-detail > div.is-active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--sv-gold) !important;
  text-decoration: none;
}
.brand-link .material-symbols-outlined {
  font-size: 18px;
}
.brand-link:hover { text-decoration: underline; }

/* ---------- Controles del carrusel del hero (prev / anillo / next) ---------- */
.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.hero-nav-btn {
  background: none;
  border: none;
  padding: 4px;
  margin: 0;
  color: #fff;
  opacity: 0.65;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.hero-nav-btn:hover { opacity: 1; }
.hero-nav-btn .material-symbols-outlined { font-size: 24px; }
.hero-timer { display: block; flex-shrink: 0; }
.hero-timer-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 2;
}
.hero-timer-progress {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* ---------- CTA flotante ---------- */
body.firstSlide .floating-cta {
  display: none !important;
}
html.sidebarShown .floating-cta {
  display: none !important;
}
.cta-stack {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.3;
}
.cta-main { font-size: 14px; }
.cta-sub {
  font-size: 10.5px;
  opacity: 0.72;
  margin-top: 2px;
  font-weight: 400;
}
.floating-cta {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}
@media (max-width: 640px) {
  .floating-cta { right: 16px; bottom: 16px; }
}

/* ---------- Cuadrícula de productos ---------- */
.product-grid > li {
  display: flex;
}
.product-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 28px 26px;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.product-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}
.product-card h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 19px;
}
.product-card p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  flex: 1;
}
.product-card .product-visit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sv-gold);
}
.product-card .product-visit .material-symbols-outlined {
  font-size: 16px;
}

/* ---------- Cuadrícula de valores ("Por qué Scrivia") ---------- */
.value-grid > li h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.value-grid > li .material-symbols-outlined {
  font-size: 24px;
  color: var(--sv-gold);
}

/* ---------- Aviso de cookies (CookieConsent v3) ---------- */
#cc-main {
  --cc-font-family: "Hanken Grotesk", sans-serif;
  --cc-modal-border-radius: 0;
  --cc-modal-margin: 0;
  --cc-btn-border-radius: 4px;
  --cc-btn-primary-bg: var(--sv-navy);
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: var(--sv-navy);
  --cc-btn-primary-hover-bg: #17335c;
  --cc-btn-primary-hover-border-color: #17335c;
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: var(--sv-navy);
  --cc-btn-secondary-border-color: rgba(15, 31, 56, 0.3);
  --cc-btn-secondary-hover-bg: rgba(15, 31, 56, 0.08);
  --cc-btn-secondary-hover-color: var(--sv-navy);
  --cc-link-color: var(--sv-navy);
  --cc-toggle-on-bg: var(--sv-gold);
  --cc-cookie-category-block-bg: #f6f3f2;
  --cc-cookie-category-block-border: #e5e2e1;
  --cc-cookie-category-block-hover-bg: #f0edec;
}
#cc-main .cm-wrapper {
  --cc-bg: var(--sv-navy);
  --cc-primary-color: var(--sv-cream);
  --cc-secondary-color: rgba(250, 248, 244, 0.65);
  --cc-btn-secondary-color: var(--sv-cream);
  --cc-btn-secondary-border-color: rgba(250, 248, 244, 0.3);
  --cc-btn-secondary-hover-bg: rgba(250, 248, 244, 0.12);
  --cc-btn-secondary-hover-color: var(--sv-cream);
  --cc-link-color: var(--sv-cream);
  --cc-footer-bg: transparent;
  --cc-footer-border-color: rgba(250, 248, 244, 0.15);
  --cc-footer-color: rgba(250, 248, 244, 0.6);
  --cc-separator-border-color: rgba(250, 248, 244, 0.15);
  --cc-overlay-bg: rgba(9, 20, 38, 0.5);
}
#cc-main .cm__title { font-size: 14px; font-weight: 600; }
#cc-main .cm__desc { font-size: 13px; line-height: 1.5; }
#cc-main .cm__btn {
  font-size: 13px;
  padding: 10px 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
}
#cc-main .cm__btn:not(.cm__btn--secondary) {
  position: relative;
  overflow: hidden;
}
#cc-main .cm__btn:not(.cm__btn--secondary)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #fff 0, #000 100%);
  opacity: 0.1;
  pointer-events: none;
}
#cc-main .pm { border-radius: 14px; }

/* Un poco de aire real al final de cada slide alta. */
.slide .content { padding-bottom: 48px; }

/* Iconos de correo/WhatsApp/Instagram en la barra superior de escritorio. */
.nav-icon svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.nav-icon .material-symbols-outlined {
  font-size: 19px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Iconos de correo/WhatsApp/Instagram del menú móvil. */
.sidebar .social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.sidebar .social li a .material-symbols-outlined { font-size: 17px; }
.sidebar .social li a svg { width: 16px !important; height: 16px !important; }
