/* ══ rostro.css · O-Vié · Módulo Rostro ══════════════════ */

/* ── Base ─────────────────────────────────────────────── */
.rostro-body { background: #000; overflow-x: hidden; }
.rostro-body #bubbles { display: none !important; }
.rostro-body #header { z-index: 700 !important; }
.rostro-body #cintillo { z-index: 701 !important; }
.rostro-body #search-bar { z-index: 699 !important; }
.rostro-body #footer-block { position: relative; z-index: 20; }

/* ── Canvas océano ────────────────────────────────────── */
.rostro-ocean {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(73,143,224,0.42), transparent 34%),
    radial-gradient(circle at 16% 28%, rgba(8,75,170,0.34), transparent 32%),
    linear-gradient(180deg, #071c48 0%, #020b24 48%, #00030d 100%);
}

.rostro-page { position: relative; z-index: 5; min-height: 100vh; color: var(--cream); }

/* ── Language ─────────────────────────────────────────── */
.rostro-lang-es, .rostro-lang-en { display: none; }
html[lang="en"] .rostro-lang-en { display: inline; }
html:not([lang="en"]) .rostro-lang-es { display: inline; }

/* ── Hero ─────────────────────────────────────────────── */
.rostro-hero {
  min-height: 100vh;
  padding: calc(var(--cintillo-h) + var(--header-h) + 92px) 42px 80px;
  display: flex; align-items: center;
}
.rostro-hero-shell {
  width: min(1240px, 100%); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}
.rostro-copy-frame,
.rostro-visual-frame {
  position: relative;
  border: 1px solid rgba(240,230,210,0.28);
  background: rgba(2,8,20,0.56);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 24px 80px rgba(0,0,0,0.52);
}
.rostro-copy-frame::before,
.rostro-visual-frame::before {
  content: ''; position: absolute; inset: 10px;
  border: 1px solid rgba(240,230,210,0.07); pointer-events: none;
}
.rostro-copy-frame {
  padding: clamp(36px, 5vw, 68px);
  display: flex; flex-direction: column; justify-content: center;
}
.rostro-eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px; letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(240,230,210,0.65);
  margin-bottom: 36px;
}
.rostro-copy-frame h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 300; line-height: 0.95;
  color: rgba(240,230,210,0.96);
  margin: 0 0 32px;
}
.rostro-copy-frame h1::after {
  content: ''; display: block;
  width: 270px; height: 1px;
  background: rgba(240,230,210,0.35);
  margin-top: 22px;
}
.rostro-body-text {
  max-width: 560px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 300; line-height: 1.86;
  letter-spacing: 0.04em;
  color: rgba(240,230,210,0.70);
}
.rostro-inline-logo {
  height: 17px; width: auto;
  display: inline; vertical-align: middle;
  transform: translateY(-1px);
  filter: brightness(0) invert(1) opacity(0.7);
}
.rostro-visual-frame {
  aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.rostro-visual-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ══ ACORDEÓN HORIZONTAL · Prefijo ra- ═══════════════════
   Texto de las tabs: de arriba hacia abajo (vertical-rl)
   Líneas y texto: color crema (letras del menú)
════════════════════════════════════════════════════════ */
:root {
  --ra-tab-w: 56px;
  --ra-closed-tabs: 5;
  --ra-copy-min-w: 350px;
  --ra-wrap-h: clamp(540px, calc(100vh - 96px), 620px);
  --ra-img-w: min(
    calc(var(--ra-wrap-h) * 0.75),
    calc(100vw - (var(--ra-tab-w) * var(--ra-closed-tabs)) - var(--ra-copy-min-w))
  );
}

.ra-section {
  position: relative; z-index: 5;
  padding: 0 0 100px;
}

/* Contenedor */
.ra-wrap {
  display: flex;
  overflow: hidden;
  border-top: 1px solid rgba(240,230,210,0.30);
  border-bottom: 1px solid rgba(240,230,210,0.30);
  height: var(--ra-wrap-h);
  min-height: 0;
  max-height: var(--ra-wrap-h);
  background: rgba(2,8,20,0.52);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Ítem */
.ra-item {
  display: flex;
  overflow: hidden;
  border-right: 1px solid rgba(240,230,210,0.20);
  cursor: pointer;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.ra-item:last-child { border-right: none; }
.ra-item.is-active  { cursor: default; }

/* ── Tab vertical ─────────────────────────────────────── */
.ra-tab {
  flex: 0 0 var(--ra-tab-w);
  width: var(--ra-tab-w);
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  cursor: pointer; border: none; outline: none;
  padding: 0; user-select: none;
  transition: background 0.3s;
}
.ra-tab:hover { background: rgba(240,230,210,0.04); }
.ra-item.is-active .ra-tab { cursor: default; background: transparent; }
.ra-tab:focus-visible {
  outline: 1px solid rgba(240,230,210,0.5);
  outline-offset: -3px;
}

/* Texto vertical — de ARRIBA hacia ABAJO */
.ra-tab-inner {
  writing-mode: vertical-rl;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.ra-tab-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 0.06em;
  color: rgba(240,230,210,0.35);
  transition: color 0.3s;
}
.ra-tab-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240,230,210,0.55);
  white-space: nowrap;
  transition: color 0.3s;
}

/* Estados activo y hover */
.ra-item.is-active .ra-tab-num   { color: rgba(240,230,210,0.95); }
.ra-item.is-active .ra-tab-label { color: rgba(240,230,210,0.95); }
.ra-item:hover:not(.is-active) .ra-tab-num   { color: rgba(240,230,210,0.65); }
.ra-item:hover:not(.is-active) .ra-tab-label { color: rgba(240,230,210,0.75); }

/* ── Contenido expandido ──────────────────────────────── */
.ra-content {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: var(--ra-img-w) minmax(0, 1fr);
  height: 100%;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease 0.24s;
}
.ra-item.is-active .ra-content {
  opacity: 1; pointer-events: auto;
}

/* Imagen — marco real 3:4 del acordeón */
.ra-img {
  position: relative;
  width: var(--ra-img-w);
  height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(240,230,210,0.14);
  background: rgba(246,241,234,0.96);
}

/* Imagen real: completa, sin zoom ni recorte */
.ra-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* Placeholder visible solo mientras no hay imagen */
.ra-img-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240,230,210,0.28);
  text-align: center; line-height: 2.2;
}
/* Ocultar placeholder si hay imagen */
.ra-img img ~ .ra-img-ph { display: none; }

/* Texto + botón */
.ra-body {
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: clamp(24px, 2.6vw, 38px) clamp(24px, 2.8vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}
.ra-body-num {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 4vw, 50px); line-height: 1;
  color: rgba(240,230,210,0.14);
  margin-bottom: 12px;
}
.ra-body-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 3.3vw, 48px);
  font-weight: 300;
  color: rgba(240,230,210,0.96);
  margin: 0 0 14px;
  line-height: 1.05;
}
.ra-body-line {
  width: 40px; height: 1px;
  background: rgba(240,230,210,0.35);
  margin-bottom: 18px;
}
.ra-body-text {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 300;
  line-height: 1.78;
  letter-spacing: 0.04em;
  color: rgba(240,230,210,0.58);
  max-width: 440px;
  margin: 0 0 20px;
}

.ra-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: rgba(240,230,210,0.95);
  margin: 0 0 18px;
}

/* Grupo de botones */
.ra-btn-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: min(100%, 500px);
  margin-top: 0;
}

/* Base compartida */
.ra-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 13px 14px;
  cursor: pointer;
  line-height: 1;
  border: 1px solid transparent;
  background: transparent;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

/* Primario — Añadir al Carrito */
.ra-btn--cart {
  color: rgba(240,230,210,0.96);
  border-color: rgba(240,230,210,0.45);
}
.ra-btn--cart:hover {
  background: rgba(240,230,210,0.10);
  border-color: rgba(240,230,210,0.85);
  color: #fff;
}

/* Secundario — Descripción */
.ra-btn--desc {
  color: rgba(240,230,210,0.60);
  border-color: rgba(240,230,210,0.20);
}
.ra-btn--desc:hover {
  background: rgba(240,230,210,0.06);
  border-color: rgba(240,230,210,0.48);
  color: rgba(240,230,210,0.95);
}

/* ── Hint animado en tabs colapsadas ─────────────────── */
@keyframes ra-hint-pulse {
  0%, 100% { opacity: 0.22; transform: translateX(-50%) scaleY(1); }
  50%       { opacity: 0.70; transform: translateX(-50%) scaleY(1.6); }
}

/* Solo tabs colapsadas reciben el indicador */
.ra-item:not(.is-active) .ra-tab {
  position: relative;   /* necesario para el ::after */
}

/* Pequeña línea vertical que pulsa — evoca un cursor esperando */
.ra-item:not(.is-active) .ra-tab::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 14px;
  background: rgba(240,230,210,0.55);
  border-radius: 1px;
  animation: ra-hint-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

/* Ocultar en mobile (tabs horizontales, no aplica) */
@media (max-width: 768px) {
  .ra-item:not(.is-active) .ra-tab::after { display: none; }
}


@media (max-width: 1180px) and (min-width: 769px) {
  :root {
    --ra-tab-w: 48px;
    --ra-copy-min-w: 320px;
    --ra-wrap-h: clamp(520px, calc(100vh - 104px), 560px);
  }
  .ra-body { padding: 22px 26px; }
  .ra-body-title { font-size: clamp(32px, 3vw, 42px); }
  .ra-body-text { font-size: 13px; line-height: 1.7; }
  .ra-btn { letter-spacing: 0.18em; padding-inline: 10px; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 980px) {
  .rostro-hero { padding: calc(58px + 58px + 42px) 20px 64px; }
  .rostro-hero-shell { grid-template-columns: 1fr; }
  .rostro-visual-frame { width: min(420px,100%); margin: 0 auto; }
}

/* MOBILE — acordeón vertical */
@media (max-width: 768px) {
  :root { --ra-tab-w: 52px; }

  .ra-wrap {
    flex-direction: column;
    height: auto;
    min-height: auto;
    max-height: none;
    border-left: none; border-right: none;
  }
  .ra-item {
    flex-direction: column;
    width: 100% !important;
    border-right: none;
    border-bottom: 1px solid rgba(240,230,210,0.18);
    transition: none;
  }
  .ra-item:last-child { border-bottom: none; }

  /* Tab horizontal en mobile */
  .ra-tab {
    flex: 0 0 52px; width: 100%; height: 52px;
    justify-content: flex-start;
    padding: 0 20px;
  }
  .ra-tab-inner {
    writing-mode: horizontal-tb;
    flex-direction: row;
    gap: 12px; align-items: center;
  }
  .ra-tab-num   { font-size: 16px; }
  .ra-tab-label { font-size: 11px; white-space: nowrap; }

  /* Contenido colapsado */
  .ra-content {
    grid-template-columns: 1fr;
    max-height: 0; overflow: hidden;
    opacity: 0; pointer-events: none;
    transition: max-height 0.45s ease, opacity 0.3s ease;
  }
  .ra-item.is-active .ra-content {
    max-height: 720px;
    opacity: 1; pointer-events: auto;
  }
  .ra-img {
    width: 100%;
    min-height: 200px;
    aspect-ratio: 3 / 4;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(240,230,210,0.12);
  }
  .ra-body { padding: 28px 20px 36px; }
  .ra-body-text { max-width: 100%; }

  .rostro-hero { padding-left: 0; padding-right: 0; }
  .rostro-copy-frame { padding: 34px 24px; }
}

@media (max-width: 480px) {
  .rostro-hero { padding-left: 16px; padding-right: 16px; }
}

/* ══════════════════════════════════════════════════════════
   COMING SOON — ra-img--cs (rostro)
══════════════════════════════════════════════════════════ */
.ra-img--cs { background: rgba(2,9,18,0.92); }

.rostro-cs-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rostro-cs-glow {
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 50% 50%,
    rgba(201,168,112,0.24) 0%,
    rgba(201,168,112,0.08) 32%,
    transparent 62%
  );
  animation: rostroCSGlow 4s ease-in-out infinite;
}
@keyframes rostroCSGlow {
  0%, 100% { transform: scale(0.88); opacity: 0.5; }
  50%       { transform: scale(1.12); opacity: 1; }
}

.rostro-cs-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(201,168,112,0.18);
  pointer-events: none;
}
.rostro-cs-ring--1 {
  width: 54%; height: 54%;
  transform: translate(-50%, -50%);
  animation: rostroCSRing 7s linear infinite;
}
.rostro-cs-ring--2 {
  width: 82%; height: 82%;
  transform: translate(-50%, -50%);
  border-color: rgba(201,168,112,0.09);
  animation: rostroCSRing 11s linear infinite reverse;
}
@keyframes rostroCSRing {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.rostro-cs-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.rostro-cs-logo {
  height: 18px;
  width: auto;
  animation: rostroCSLogoGlow 4s ease-in-out infinite;
}
@keyframes rostroCSLogoGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(201,168,112,0.30)) brightness(0.88); }
  50%       { filter: drop-shadow(0 0 14px rgba(201,168,112,0.88)) drop-shadow(0 0 28px rgba(201,168,112,0.28)) brightness(1.12); }
}

.rostro-cs-label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(9px, 1.1vw, 13px);
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: rgba(201,168,112,0.72);
  animation: rostroCSLabel 4s ease-in-out infinite;
}
@keyframes rostroCSLabel {
  0%, 100% { opacity: 0.50; letter-spacing: 0.40em; }
  50%       { opacity: 1.00; letter-spacing: 0.50em; }
}

/* Lang system en rostro-cs-label */
.rostro-lang-es, .rostro-lang-en { display: none; }
html[lang="en"]       .rostro-lang-en { display: inline; }
html:not([lang="en"]) .rostro-lang-es { display: inline; }
