/* ============================================================
   Richard Petrus — Mediterranean Liquid Bronze (Opción A)
   ============================================================ */

:root {
  /* Backgrounds */
  --rp-bg: #0A0A0B;
  --rp-bg-2: #121214;
  --rp-card: #18181B;
  --rp-card-2: #1f1f23;

  /* Text */
  --rp-text: #F5F2EC;
  --rp-text-2: #A8A29E;
  --rp-text-3: #6b665f;

  /* Bronze palette */
  --rp-bronze: #B87333;
  --rp-bronze-light: #D4A574;
  --rp-bronze-dark: #8B5A2B;
  --rp-bronze-glow: rgba(212, 165, 116, 0.4);

  /* Mediterranean accent */
  --rp-olive: #5D6B47;
  --rp-olive-dim: rgba(93, 107, 71, 0.3);

  /* Borders */
  --rp-border: rgba(184, 115, 51, 0.12);
  --rp-border-2: rgba(245, 242, 236, 0.06);
  --rp-border-strong: rgba(212, 165, 116, 0.32);

  /* Fonts */
  --rp-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --rp-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --rp-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* ===== Identity B — Catalan Brutalism ===== */
[data-identity="B"] {
  --rp-bg: #F4F1EB;
  --rp-bg-2: #ECE7DD;
  --rp-card: #FFFFFF;
  --rp-card-2: #F4F1EB;
  --rp-text: #0A0A0A;
  --rp-text-2: #4a4a48;
  --rp-text-3: #8B8680;
  --rp-bronze: #C8102E;
  --rp-bronze-light: #C8102E;
  --rp-bronze-dark: #8a0a1f;
  --rp-bronze-glow: rgba(200, 16, 46, 0.25);
  --rp-olive: #0A0A0A;
  --rp-border: rgba(10, 10, 10, 0.12);
  --rp-border-2: rgba(10, 10, 10, 0.08);
  --rp-border-strong: rgba(10, 10, 10, 0.35);
  --rp-display: "Cormorant Garamond", Georgia, serif;
}

/* ===== Identity C — Aurora Modernista ===== */
[data-identity="C"] {
  --rp-bg: #0E0E10;
  --rp-bg-2: #16161A;
  --rp-card: #1a1a1e;
  --rp-card-2: #232328;
  --rp-text: #EDE8DC;
  --rp-text-2: #b0a994;
  --rp-bronze: #B89968;
  --rp-bronze-light: #E8DCC4;
  --rp-bronze-dark: #8a7048;
  --rp-bronze-glow: rgba(184, 153, 104, 0.35);
  --rp-olive: #3B5F4A;
  --rp-border: rgba(184, 153, 104, 0.15);
  --rp-border-strong: rgba(232, 220, 196, 0.3);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--rp-bg);
  color: var(--rp-text);
  font-family: var(--rp-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   Type
   ============================================================ */
.rp-display {
  font-family: var(--rp-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.02;
}
.rp-italic { font-style: italic; }
.rp-mono {
  font-family: var(--rp-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}

h1.rp-h1 {
  font-family: var(--rp-display);
  font-weight: 400;
  font-size: clamp(48px, 7.2vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0;
}
h2.rp-h2 {
  font-family: var(--rp-display);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0;
}
h3.rp-h3 {
  font-family: var(--rp-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
}

p { margin: 0; }
.rp-lead {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--rp-text-2);
  max-width: 56ch;
}
.rp-body { font-size: 15px; line-height: 1.7; color: var(--rp-text-2); }

/* ============================================================
   Layout
   ============================================================ */
.rp-section {
  position: relative;
  padding: clamp(80px, 9vw, 140px) clamp(24px, 5vw, 72px);
  max-width: 1480px;
  margin: 0 auto;
}
.rp-section--narrow { max-width: 1200px; }
.rp-section--full {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.rp-divider-line {
  height: 1px;
  background: var(--rp-border-2);
  width: 100%;
  margin: 0;
}

/* ============================================================
   Editorial Divider — "01 / MANIFIESTO"
   ============================================================ */
.rp-editorial-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 64px);
  font-family: var(--rp-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rp-bronze-light);
}
.rp-editorial-divider::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--rp-bronze-light);
}

/* ============================================================
   Buttons
   ============================================================ */
.rp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--rp-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1),
              background 240ms ease,
              border-color 240ms ease,
              box-shadow 240ms ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.rp-btn-primary {
  background: linear-gradient(135deg, var(--rp-bronze-light) 0%, var(--rp-bronze) 60%, var(--rp-bronze-dark) 100%);
  color: #0A0A0B;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 12px 30px -10px var(--rp-bronze-glow);
}
.rp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 18px 40px -12px var(--rp-bronze-glow);
}
.rp-btn-ghost {
  background: transparent;
  color: var(--rp-text);
  border-color: var(--rp-border-strong);
}
.rp-btn-ghost:hover {
  background: rgba(245, 242, 236, 0.04);
  border-color: var(--rp-bronze-light);
}
.rp-btn-arrow {
  width: 14px; height: 14px;
  display: inline-block;
  transition: transform 200ms ease;
}
.rp-btn:hover .rp-btn-arrow { transform: translateX(3px); }

/* ============================================================
   Cards
   ============================================================ */
.rp-card {
  position: relative;
  background: var(--rp-card);
  border: 1px solid var(--rp-border-2);
  border-radius: 14px;
  padding: clamp(28px, 3vw, 40px);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1),
              border-color 320ms ease,
              box-shadow 320ms ease;
}
.rp-card:hover {
  transform: translateY(-2px);
  border-color: var(--rp-border);
  box-shadow: 0 30px 50px -28px rgba(184, 115, 51, 0.25);
}

/* ============================================================
   ShinyText (price shimmer)
   ============================================================ */
.rp-shiny {
  background: linear-gradient(
    100deg,
    var(--rp-bronze-light) 20%,
    #ffe8c8 45%,
    var(--rp-bronze-light) 55%,
    var(--rp-bronze) 80%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rp-shine 5s linear infinite;
}
@keyframes rp-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   Hero image placeholder
   ============================================================ */
.rp-photo {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(184, 115, 51, 0.08) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(160deg, var(--rp-card-2), var(--rp-bg-2));
  border: 1px solid var(--rp-border);
  border-radius: 8px;
  overflow: hidden;
}
.rp-photo-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  font-family: var(--rp-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rp-bronze-light);
  opacity: 0.7;
  pointer-events: none;
}

/* ============================================================
   Mediterranean Aurora — drifting orbs
   ============================================================ */
.rp-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.rp-aurora__orb {
  position: absolute;
  width: 60vw; max-width: 720px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: rp-drift 22s ease-in-out infinite;
  mix-blend-mode: screen;
}
.rp-aurora__orb--bronze {
  background: radial-gradient(circle, var(--rp-bronze) 0%, transparent 60%);
  top: -10%; left: -10%;
}
.rp-aurora__orb--olive {
  background: radial-gradient(circle, var(--rp-olive) 0%, transparent 60%);
  bottom: -20%; right: -10%;
  animation-delay: -10s;
  animation-duration: 28s;
}
@keyframes rp-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(8%, 6%) scale(1.15); }
}

/* B identity has light bg — soften aurora */
[data-identity="B"] .rp-aurora__orb { opacity: 0.18; mix-blend-mode: multiply; }

/* ============================================================
   Drop cap
   ============================================================ */
.rp-dropcap::first-letter {
  font-family: var(--rp-display);
  font-style: italic;
  font-size: 5.2em;
  float: left;
  line-height: 0.86;
  padding: 0.06em 0.14em 0 0;
  color: var(--rp-bronze-light);
  font-weight: 400;
}

/* ============================================================
   Pull Quote
   ============================================================ */
.rp-pullquote {
  font-family: var(--rp-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.32;
  color: var(--rp-text);
  border-left: 2px solid var(--rp-bronze-light);
  padding-left: 24px;
  margin: 40px 0 12px;
  max-width: 44ch;
}
.rp-pullquote-attr {
  font-family: var(--rp-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rp-text-3);
  padding-left: 26px;
}

/* ============================================================
   BlurTextReveal
   ============================================================ */
.rp-reveal {
  display: inline;
}
.rp-reveal .rp-word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(8px);
  transition: opacity 800ms ease, filter 800ms ease, transform 800ms ease;
  transition-delay: calc(var(--i) * 60ms);
}
.rp-reveal.in .rp-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ============================================================
   ElectricBorder (bronze) — for the "MÁS ELEGIDO" card
   ============================================================ */
.rp-electric {
  position: relative;
  isolation: isolate;
}
.rp-electric::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--rp-bronze-light) 60deg,
    var(--rp-bronze) 90deg,
    transparent 180deg,
    var(--rp-bronze-light) 270deg,
    transparent 360deg
  );
  z-index: -1;
  animation: rp-rotate 6s linear infinite;
  opacity: 0.85;
}
.rp-electric::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--rp-card);
  border-radius: inherit;
  z-index: -1;
}
@keyframes rp-rotate {
  to { transform: rotate(360deg); }
}

/* ============================================================
   FOMO push notification
   ============================================================ */
.rp-fomo {
  position: fixed;
  left: 24px;
  bottom: 24px;
  background: var(--rp-card-2);
  border: 1px solid var(--rp-border);
  border-radius: 14px;
  padding: 14px 18px 14px 56px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 260px;
  max-width: 320px;
  z-index: 80;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6),
              0 1px 0 rgba(255,255,255,0.04) inset;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 480ms cubic-bezier(.2,.8,.2,1), opacity 320ms ease;
}
.rp-fomo.show {
  transform: translateY(0);
  opacity: 1;
}
.rp-fomo__dot {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rp-bronze-light), var(--rp-bronze-dark));
  box-shadow: 0 0 0 4px rgba(184, 115, 51, 0.18);
}
.rp-fomo__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--rp-text);
}
.rp-fomo__plan {
  font-family: var(--rp-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rp-text-3);
}

/* ============================================================
   WhatsApp Float
   ============================================================ */
.rp-wa {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.5);
  transition: transform 220ms ease;
}
.rp-wa:hover { transform: scale(1.06); }
.rp-wa svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================================
   Consent banner
   ============================================================ */
.rp-consent {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  background: var(--rp-card);
  border: 1px solid var(--rp-border);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  z-index: 90;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7);
}
.rp-consent__text {
  flex: 1 1 320px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--rp-text-2);
}
.rp-consent__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-consent button {
  border: 1px solid var(--rp-border);
  background: transparent;
  color: var(--rp-text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.rp-consent button.primary {
  background: var(--rp-bronze);
  border-color: var(--rp-bronze);
  color: #0A0A0B;
}

/* ============================================================
   Nav
   ============================================================ */
.rp-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(24px, 5vw, 64px);
  background: color-mix(in oklab, var(--rp-bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rp-border-2);
}
.rp-nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--rp-display);
  font-size: 20px;
  letter-spacing: -0.005em;
}
.rp-nav__mono {
  font-family: var(--rp-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rp-text-3);
  border-left: 1px solid var(--rp-border);
  padding-left: 12px;
}
.rp-nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.rp-nav__links a {
  font-size: 13px;
  color: var(--rp-text-2);
  transition: color 200ms ease;
}
.rp-nav__links a:hover { color: var(--rp-text); }
.rp-nav__right {
  display: flex;
  gap: 14px;
  align-items: center;
}
.rp-lang {
  display: flex;
  background: var(--rp-card-2);
  border: 1px solid var(--rp-border-2);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--rp-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
}
.rp-lang button {
  background: transparent;
  border: 0;
  color: var(--rp-text-2);
  padding: 6px 12px;
  text-transform: uppercase;
}
.rp-lang button.on {
  background: var(--rp-bronze);
  color: #0A0A0B;
}

@media (max-width: 820px) {
  .rp-nav__links { display: none; }
}

/* ============================================================
   Misc utility
   ============================================================ */
.rp-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--rp-bronze-light);
  font-size: 13px;
  letter-spacing: 1px;
}

.rp-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* B identity tweaks */
[data-identity="B"] .rp-photo {
  background:
    repeating-linear-gradient(45deg, rgba(10,10,10,0.06) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #e8e3d7, #d9d2c2);
}
[data-identity="B"] .rp-photo-label { color: #0A0A0A; opacity: 0.55; }
[data-identity="B"] .rp-card { background: #FFFFFF; }
[data-identity="B"] .rp-btn-primary { color: #FFFFFF; background: var(--rp-bronze); box-shadow: none; }
[data-identity="B"] .rp-btn-primary:hover { background: var(--rp-bronze-dark); }
[data-identity="B"] .rp-nav { background: color-mix(in oklab, var(--rp-bg) 85%, transparent); }
[data-identity="B"] .rp-grain { display: none; }
[data-identity="B"] h1.rp-h1 { font-size: clamp(56px, 9vw, 144px); }

/* C identity is dark but uses different accents */
[data-identity="C"] .rp-aurora__orb--olive {
  background: radial-gradient(circle, var(--rp-olive) 0%, transparent 60%);
}
