/* =====================================================================
   TEMAS DE LA PÁGINA · el visitante elige con el selector de abajo a la izquierda
     noche  (predeterminado) → el diseño original: negro, marfil y dorado
     marfil → las secciones oscuras pasan a marfil/blanco; dorado más profundo
     rojo   → todo negro con acento rojo (colores del logo SS)
   La portada (foto) y el banner de faros siempre se quedan oscuros.
   ===================================================================== */

/* ---------- Transición suave al cambiar de tema ---------- */
html.cambiando-tema, html.cambiando-tema * { transition: background-color .6s ease, color .6s ease, border-color .6s ease !important; }

/* ---------- Selector de tema ---------- */
.tema-picker { position: fixed; left: 22px; bottom: 22px; z-index: 70; display: flex; gap: 6px; padding: 6px; border-radius: 30px; background: rgba(10,10,10,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); }
.tema-picker__label { color: #f4f1ea; font-size: 9px; letter-spacing: .26em; text-transform: uppercase; align-self: center; padding: 0 6px 0 8px; opacity: .7; }
.tema-picker button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); position: relative; transition: transform .4s var(--ease); }
.tema-picker button:hover { transform: scale(1.12); }
.tema-picker button[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid #f4f1ea; }
.tema-picker button[data-tema="noche"] { background: linear-gradient(135deg, #0a0a0a 50%, #c9a96e 50%); }
.tema-picker button[data-tema="marfil"] { background: linear-gradient(135deg, #f6f3ed 50%, #15130f 50%); }
.tema-picker button[data-tema="rojo"] { background: linear-gradient(135deg, #0b0b0b 50%, #d11f2a 50%); }
.tema-picker button span { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px); white-space: nowrap; background: #0a0a0a; color: #f4f1ea; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 6px 10px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.tema-picker button:hover span, .tema-picker button:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) { .tema-picker { left: 14px; bottom: 14px; } .tema-picker__label { display: none; } .tema-picker button { width: 26px; height: 26px; } }

/* =====================================================================
   TEMA MARFIL
   ===================================================================== */
html[data-tema="marfil"] {
  --gold: #a8823f;
  --gold-2: #8a6a30;
  --danger: #b8432c;
}
/* Secciones que eran negras: se invierten sus variables dentro de la sección */
html[data-tema="marfil"] .services,
html[data-tema="marfil"] .offers,
html[data-tema="marfil"] .care,
html[data-tema="marfil"] .club,
html[data-tema="marfil"] .footer {
  --black: #f6f3ed;
  --ivory: #15130f;
  --graphite: #ece7dd;
  --line: rgba(20, 18, 14, .12);
}
html[data-tema="marfil"] .services { background: #fbf9f5; }
html[data-tema="marfil"] .offers { background: #f2eee6; }
html[data-tema="marfil"] .care { background: linear-gradient(180deg, #fbf9f5, #f2ede3); }
html[data-tema="marfil"] .club { background: #efe9de; }
html[data-tema="marfil"] .club::before { background: radial-gradient(circle, rgba(168,130,63,.16), transparent 60%); }
html[data-tema="marfil"] .footer { background: #e9e3d7; color: #5c574f; }
html[data-tema="marfil"] .footer__cols a:hover { color: var(--gold); }

/* Botón dorado: texto siempre negro y relleno negro al pasar el mouse */
html[data-tema="marfil"] .btn--gold { color: #0a0a0a; }
html[data-tema="marfil"] .btn--gold::before { background: #15130f; }
html[data-tema="marfil"] .btn--gold:hover { color: #d9bd85; }

/* Textos sobre foto: siempre claros */
html[data-tema="marfil"] .svc { color: #f4f1ea; }
html[data-tema="marfil"] .hero__title em { color: #e5cf9f; }
html[data-tema="marfil"] .nav:not(.scrolled) .nav__brand em,
html[data-tema="marfil"] .hero .eyebrow,
html[data-tema="marfil"] .editorial .eyebrow { color: #e5cf9f; }
html[data-tema="marfil"] .hero .btn--gold, html[data-tema="marfil"] .editorial .btn--gold { background: #c9a96e; }
html[data-tema="rojo"] .nav:not(.scrolled) .nav__brand em { color: #ff4b55; }
html[data-tema="marfil"] .editorial .section-title em { color: #e5cf9f; }
html[data-tema="marfil"] .services .section-sub,
html[data-tema="marfil"] .section-head--light .section-sub { color: #7b7468; }

/* Ofertas, membresía y club en claro */
html[data-tema="marfil"] .offer .price s { color: #9a9387; }
html[data-tema="marfil"] .offer .stock-line { color: var(--danger); }
html[data-tema="marfil"] .step { background: #ffffff; }
html[data-tema="marfil"] .steps { background: rgba(20,18,14,.1); }
html[data-tema="marfil"] .plan { background: #ffffff; box-shadow: 0 1px 2px rgba(60,45,20,.08); }
html[data-tema="marfil"] .plan:hover { box-shadow: 0 24px 50px rgba(60,45,20,.14); border-color: rgba(168,130,63,.5); }
html[data-tema="marfil"] .plan--top { background: #15130f; color: #f4f1ea; border-color: #15130f; }
html[data-tema="marfil"] .plan--top .plan__eq { color: #d9bd85; }
html[data-tema="marfil"] .plan--top li::before { color: #d9bd85; }
html[data-tema="marfil"] .plan--top .btn--gold { background: #c9a96e; }
html[data-tema="marfil"] .billing button.active em { color: #e5cf9f; }
html[data-tema="marfil"] .care .btn--ghost:hover, html[data-tema="marfil"] .plan .btn--ghost:hover { color: #f6f3ed; }
html[data-tema="marfil"] .care .btn--ghost::before { background: #15130f; }
html[data-tema="marfil"] .btn--ghost::before { background: #15130f; }
html[data-tema="marfil"] .hero .btn--ghost::before, html[data-tema="marfil"] .editorial .btn--ghost::before { background: #f4f1ea; }
html[data-tema="marfil"] .services .btn--ghost:hover, html[data-tema="marfil"] .offers .btn--ghost:hover, html[data-tema="marfil"] .club .btn--ghost:hover { color: #f6f3ed; }
html[data-tema="marfil"] .phone { box-shadow: 0 50px 100px rgba(60,45,20,.28), inset 0 0 0 1px rgba(255,255,255,.08); }
html[data-tema="marfil"] .club__field { border-bottom-color: rgba(20,18,14,.3); }
html[data-tema="marfil"] .club__field input::placeholder { color: rgba(20,18,14,.4); }
@media (max-width: 520px) { html[data-tema="marfil"] .club__field input { border-bottom-color: rgba(20,18,14,.3); } }
html[data-tema="marfil"] .chips span { border-color: rgba(20,18,14,.18); }
html[data-tema="marfil"] .club .form__msg.ok { color: #6b5020; }

/* =====================================================================
   TEMA ROJO (todo negro + rojo)
   ===================================================================== */
html[data-tema="rojo"] {
  --gold: #d11f2a;
  --gold-2: #ff6b74;
  --danger: #ff3b47;
}
html[data-tema="rojo"] body { background: #0b0b0b; color: #f2f2f2; }
/* Secciones que eran claras: se oscurecen dentro de la sección */
html[data-tema="rojo"] .manifesto,
html[data-tema="rojo"] .soluto__kits,
html[data-tema="rojo"] .shop,
html[data-tema="rojo"] .gallery,
html[data-tema="rojo"] .booking,
html[data-tema="rojo"] .cart,
html[data-tema="rojo"] .modal__box,
html[data-tema="rojo"] .nav.scrolled {
  --paper: #101010;
  --ivory: #161616;
  --ink: #f2f2f2;
  --muted: #9a9da3;
}
html[data-tema="rojo"] .manifesto { background: #0b0b0b; }
html[data-tema="rojo"] .soluto__kits { background: #0b0b0b; }
html[data-tema="rojo"] .kit p { color: #a9acb2; }
html[data-tema="rojo"] .hotspot { animation-name: puntoRojo; }
html[data-tema="rojo"] .hotspot::before { color: #fff; }
@keyframes puntoRojo { 0% { box-shadow: 0 0 0 0 rgba(209,31,42,.7); } 70% { box-shadow: 0 0 0 14px rgba(209,31,42,0); } 100% { box-shadow: 0 0 0 0 rgba(209,31,42,0); } }
html[data-tema="rojo"] .compat { color: #7fbf83; }
html[data-tema="rojo"] .soluto__specs b { color: #ff6b74; }
html[data-tema="marfil"] .kit { background: #fff; box-shadow: 0 1px 2px rgba(60,45,20,.08); }
html[data-tema="marfil"] .soluto__specs b { color: #e5cf9f; }
html[data-tema="marfil"] .soluto .section-title em, html[data-tema="marfil"] .soluto .eyebrow { color: #e5cf9f; }
html[data-tema="rojo"] .shop { background: #0f0f0f; }
html[data-tema="rojo"] .gallery { background: #0b0b0b; }
html[data-tema="rojo"] .booking { background: #121212; }
html[data-tema="rojo"] .services, html[data-tema="rojo"] .offers, html[data-tema="rojo"] .club { background: #070707; }
html[data-tema="rojo"] .care { background: linear-gradient(180deg, #0b0b0b, #160a0b); }
html[data-tema="rojo"] .step { background: #0f0b0b; }
html[data-tema="rojo"] .footer { background: #000; }
html[data-tema="rojo"] .nav.scrolled { background: rgba(10,10,10,.86); color: #f2f2f2; border-bottom-color: rgba(209,31,42,.35); }
html[data-tema="rojo"] .btn--gold { color: #fff; }
html[data-tema="rojo"] .btn--gold::before { background: #fff; }
html[data-tema="rojo"] .btn--gold:hover { color: #0b0b0b; }
html[data-tema="rojo"] .nav__count { color: #fff; }
html[data-tema="rojo"] .badge--sale { color: #fff; }

/* Bordes finos que eran negros sobre claro → claros sobre negro */
html[data-tema="rojo"] .stats { border-top-color: rgba(255,255,255,.1); }
html[data-tema="rojo"] .filter:hover { border-color: rgba(255,255,255,.25); }
html[data-tema="rojo"] .filter.active { background: #d11f2a; color: #fff; }
html[data-tema="rojo"] .stock-meter { background: rgba(255,255,255,.1); }
html[data-tema="rojo"] .marquee__track { -webkit-text-stroke-color: rgba(209,31,42,.55); }
html[data-tema="rojo"] .booking__intro > p:not(.eyebrow), html[data-tema="rojo"] .modal__info p { color: #a9acb2; }
html[data-tema="rojo"] .app-card { background: #0b0b0b; border-color: rgba(255,255,255,.08); }
html[data-tema="rojo"] .app-card__icon { color: #ff6b74; }
html[data-tema="rojo"] .field input, html[data-tema="rojo"] .field select, html[data-tema="rojo"] .field textarea { border-bottom-color: rgba(255,255,255,.22); color: #f2f2f2; }
html[data-tema="rojo"] .field select option { background: #161616; }
html[data-tema="rojo"] .card__media, html[data-tema="rojo"] .modal__img, html[data-tema="rojo"] .citem img, html[data-tema="rojo"] .g { background: #1a1a1a; }
html[data-tema="rojo"] .card__quick button { background: rgba(16,16,16,.92); color: #f2f2f2; }
html[data-tema="rojo"] .card__quick button:hover { background: #d11f2a; color: #fff; }
html[data-tema="rojo"] .badge { background: #161616; color: #f2f2f2; }
html[data-tema="rojo"] .badge--low, html[data-tema="rojo"] .badge--sale { background: #d11f2a; color: #fff; }
html[data-tema="rojo"] .badge--out { background: #f2f2f2; color: #0b0b0b; }
html[data-tema="rojo"] .price-socio, html[data-tema="rojo"] .cart__save { color: #ff6b74; }
html[data-tema="rojo"] .cart__head, html[data-tema="rojo"] .cart__foot, html[data-tema="rojo"] .citem { border-color: rgba(255,255,255,.08); }
html[data-tema="rojo"] .qty { border-color: rgba(255,255,255,.18); }
html[data-tema="rojo"] .stock-line.ok, html[data-tema="rojo"] .form__msg.ok { color: #7fbf83; }
html[data-tema="rojo"] .plan:hover { border-color: rgba(209,31,42,.6); }
html[data-tema="rojo"] .plan--top { background: linear-gradient(180deg, rgba(209,31,42,.14), rgba(209,31,42,0) 60%); }
html[data-tema="rojo"] .plan__tag { color: #fff; }
html[data-tema="rojo"] .billing button.active em { color: #d11f2a; }
html[data-tema="rojo"] .club::before { background: radial-gradient(circle, rgba(209,31,42,.2), transparent 60%); }
html[data-tema="rojo"] .phone { box-shadow: 0 50px 100px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08), 0 0 120px rgba(209,31,42,.18); }
html[data-tema="rojo"] .phone__btn { color: #ff6b74; }
html[data-tema="rojo"] .wa-float { background: #d11f2a; color: #fff; }
html[data-tema="rojo"] .club .form__msg.ok { color: #ff9aa1; }
html[data-tema="rojo"] .preloader__logo em, html[data-tema="rojo"] .nav__brand em, html[data-tema="rojo"] .footer__brand em { color: #d11f2a; }
html[data-tema="rojo"] .hero__title em { color: #ff6b74; }

/* Redes sociales en los temas */
html[data-tema="rojo"] .social { --paper: #101010; --ink: #f2f2f2; --muted: #9a9da3; }
html[data-tema="rojo"] .social__card { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.02); }
html[data-tema="rojo"] .social__card:hover .social__icon { color: #fff; }
html[data-tema="marfil"] .social { background: #fbf9f5; }
