/* =========================================================
   /redes/ — Redes sociales para inmobiliarias
   Hereda tokens y componentes de ../styles.css
   ========================================================= */

/* ---------- HERO ---------- */
.rhero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 70px;
  overflow: hidden;
}
.rhero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(30px, 5vw, 70px); align-items: center;
}
.rhero__title { font-size: clamp(2.5rem, 6vw, 4.9rem); }
.rhero__actions { margin-bottom: 34px; }
.rhero__nets { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.rhero__nets li {
  font-size: 13px; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(148,163,184,.04);
}

/* ---------- PHONE / REEL ---------- */
.phone-wrap { position: relative; display: grid; place-items: center; padding: 20px 0 50px; }
.phone {
  position: relative;
  width: min(290px, 70vw); aspect-ratio: 9 / 18.5;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, #1f2a40, #0b1120);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0,102,255,.55), 0 0 0 1px rgba(0,240,255,.08), inset 0 0 0 2px rgba(255,255,255,.03);
  transform: rotate(-4deg);
  animation: float 7s var(--ease) infinite;
}
@keyframes float { 50% { transform: rotate(-2deg) translateY(-12px); } }
.phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; border-radius: 20px; background: #05080f; z-index: 3;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #05080f; }

.reel { position: absolute; inset: 0; }
.reel__scene {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #2b5cff 0%, #5fb5ff 45%, #ffcf8a 70%, #1d2a3d 70.5%, #0f1726 100%);
  animation: kenburns 9s ease-in-out infinite alternate;
}
@keyframes kenburns { to { transform: scale(1.12) translateX(-4%); } }
.reel__sun {
  position: absolute; top: 24%; right: 18%;
  width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle, #fff6d6, #ffc46b 60%, transparent 70%);
  filter: blur(.5px);
}
.reel__house {
  position: absolute; left: 50%; bottom: 29%; transform: translateX(-50%);
  width: 62%; height: 26%;
  background: #f1f4f9;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.reel__house::before {
  content: ""; position: absolute; left: -8%; right: -8%; top: -42%; height: 46%;
  background: #24324a; clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.reel__house i {
  position: absolute; bottom: 18%; width: 20%; height: 38%;
  background: linear-gradient(180deg, #8fd8ff, #3b82f6); border-radius: 2px;
}
.reel__house i:nth-child(1) { left: 10%; }
.reel__house i:nth-child(2) { left: 40%; height: 60%; bottom: 0; background: #6b4a2b; }
.reel__house i:nth-child(3) { right: 10%; }
.reel__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 29%; background: linear-gradient(180deg, #2f7d4f, #14301f); }

.reel__top {
  position: absolute; top: 48px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: center; z-index: 2;
}
.reel__logo {
  font-family: var(--font-head); font-size: 9px; font-weight: 700; letter-spacing: .14em;
  color: #fff; background: rgba(0,0,0,.35); padding: 5px 8px; border-radius: 6px;
  backdrop-filter: blur(6px);
}
.reel__rec {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 600; letter-spacing: .12em; color: #fff;
  background: rgba(0,0,0,.35); padding: 5px 8px; border-radius: 6px;
}
.reel__rec i { width: 6px; height: 6px; border-radius: 50%; background: #ff3b5c; animation: blink 1s steps(2) infinite; }
.reel.is-done .reel__rec i { background: var(--green-br); animation: none; }
@keyframes blink { 50% { opacity: .2; } }

.reel__caption {
  position: absolute; left: 12px; right: 52px; bottom: 54px; z-index: 2;
  font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.2;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.reel__caption span { display: inline-block; opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .25s, transform .3s var(--ease-out); }
.reel__caption span.on { opacity: 1; transform: none; }
.reel__caption span.hl { color: #03121a; background: var(--cyan); padding: 0 5px; border-radius: 4px; text-shadow: none; }

.reel__side {
  position: absolute; right: 10px; bottom: 64px; z-index: 2;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  color: #fff; font-size: 17px;
}
.reel__side span { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.reel__side b { font-size: 9px; font-weight: 600; margin-top: 3px; }

.reel__progress { position: absolute; left: 12px; right: 12px; bottom: 24px; height: 3px; background: rgba(255,255,255,.25); border-radius: 3px; overflow: hidden; z-index: 2; }
.reel__progress span { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.pub {
  position: absolute; right: -6px; top: 18%;
  display: flex; flex-direction: column; gap: 10px;
}
.pub__chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  padding: 9px 14px; border-radius: 100px;
  background: rgba(16,24,42,.85); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  opacity: 0; transform: translateX(20px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.pub__chip b { color: var(--green-br); }
.pub__chip--fb { border-color: rgba(59,130,246,.5); }
.pub__chip--ig { border-color: rgba(236,72,153,.5); margin-left: 26px; }
.pub__chip--tt { border-color: rgba(0,240,255,.5); }
.pub.is-on .pub__chip { opacity: 1; transform: none; }
.pub.is-on .pub__chip:nth-child(2) { transition-delay: .18s; }
.pub.is-on .pub__chip:nth-child(3) { transition-delay: .36s; }

/* ---------- PROCESO / FLOWLINE ---------- */
.flowline { position: relative; --p: 0; }
.flowline__steps { grid-template-columns: repeat(3, 1fr); }
.flowline__track {
  position: relative; height: 2px; margin: 0 0 26px;
  background: var(--line);
  border-radius: 2px;
}
.flowline__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--p) * 100%);
  background: var(--grad);
  box-shadow: 0 0 12px rgba(0,240,255,.6);
}
.flowline__packet {
  position: absolute; top: 50%; left: calc(var(--p) * 100%);
  transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 11px; color: #03121a;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(0,240,255,.15), 0 0 24px rgba(0,240,255,.7);
}

.ideas { margin-top: clamp(40px, 6vw, 64px); }
.ideas__label { color: var(--muted); margin-bottom: 16px; font-size: 15px; }
.ideas__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.ideas__chips li {
  font-size: 14px; padding: 10px 16px; border-radius: 100px;
  border: 1px solid var(--line); background: rgba(16,24,42,.5);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.ideas__chips li:hover { border-color: rgba(0,240,255,.45); transform: translateY(-2px); }

/* ---------- PLANES ---------- */
.plans { background: linear-gradient(180deg, var(--bg), var(--bg-2)); overflow: hidden; }
.plans__glow {
  position: absolute; left: 50%; top: 35%; transform: translateX(-50%);
  width: 900px; height: 600px; max-width: 100vw;
  background: radial-gradient(closest-side, rgba(0,240,255,.12), transparent);
  pointer-events: none;
}
.picker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  margin-bottom: 30px;
}
.picker__q { font-family: var(--font-head); font-size: 1.05rem; }
.picker__opts {
  display: inline-flex; gap: 4px; padding: 4px;
  border: 1px solid var(--line-2); border-radius: 100px; background: rgba(16,24,42,.6);
}
.picker__opts button {
  font: 500 14px var(--font-head); color: var(--muted);
  padding: 9px 16px; border-radius: 100px; border: 0; background: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.picker__opts button[aria-checked="true"] { background: var(--cyan); color: #03121a; }

.plans__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30,41,59,.55), rgba(16,24,42,.35));
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), opacity .45s var(--ease);
}
.plan.is-in.is-dim { opacity: .55; }
.plan.is-picked {
  border-color: rgba(0,240,255,.75);
  background: linear-gradient(180deg, rgba(0,102,255,.16), rgba(16,24,42,.5));
  box-shadow: 0 0 0 1px rgba(0,240,255,.25), 0 24px 70px -20px rgba(0,240,255,.45);
}
.plan.is-in.is-picked { transform: translateY(-8px); }
.plan__badge {
  position: absolute; top: -12px; right: 22px;
  font: 700 11px var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  color: #03121a; background: var(--cyan);
  padding: 6px 12px; border-radius: 100px;
  box-shadow: 0 6px 20px -6px rgba(0,240,255,.8);
}
.plan__name { font-size: 1.55rem; margin-bottom: 4px; }
.plan__for { color: var(--muted); font-size: 14.5px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 18px; }
.plan__price b {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 2.8rem); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.plan--star .plan__price b { color: var(--cyan); }
.plan__price span { color: var(--muted); font-size: 14px; }

.meter { display: flex; gap: 3px; height: 26px; align-items: flex-end; }
.meter i {
  flex: 1; height: 100%; border-radius: 3px;
  background: var(--grad);
  transform: scaleY(.15); transform-origin: bottom;
  transition: transform .5s var(--ease-out);
}
.meter i.off { background: rgba(148,163,184,.14); }
.meter i.maybe { background: rgba(0,240,255,.35); }
.plan.is-in .meter i { transform: none; }
.plan.is-in .meter i:nth-child(n+5) { transition-delay: .05s; }
.plan.is-in .meter i:nth-child(n+9) { transition-delay: .1s; }
.plan.is-in .meter i:nth-child(n+13) { transition-delay: .15s; }
.plan.is-in .meter i:nth-child(n+17) { transition-delay: .2s; }
.plan__per { font-size: 12.5px; color: var(--dim); margin: 8px 0 20px; letter-spacing: .02em; }

.plan__list {
  list-style: none; display: grid; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--line);
  margin-bottom: 28px; flex: 1;
}
.plan__list li { position: relative; padding-left: 26px; font-size: 15px; color: #dbe3ee; }
.plan__list li::before {
  content: ""; position: absolute; left: 2px; top: 6px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}
.plan__list b { color: var(--text); }
.plan__cta { justify-content: center; width: 100%; }

.plans__note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 14.5px; }

.addon {
  margin-top: 40px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(16,24,42,.55);
}
.addon__icon {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; color: var(--cyan);
  background: rgba(0,240,255,.08); border: 1px solid rgba(0,240,255,.3);
}
.addon__icon svg { width: 22px; height: 22px; }
.addon__copy { flex: 1; min-width: 220px; }
.addon__copy h3 { font-size: 1.12rem; margin-bottom: 4px; }
.addon__copy p { color: var(--muted); font-size: 14.5px; }
.addon__copy b { color: var(--text); }

/* ---------- FAQ + CONTACTO ---------- */
.faq { background: var(--bg-2); }
.faq__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.faq .section__head { margin-bottom: 34px; }
.faq__list details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq__list summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-size: 1.08rem; font-weight: 500;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { color: var(--muted); margin-top: 10px; font-size: 15px; max-width: 560px; }

.contact {
  position: sticky; top: 110px;
  padding: 32px 28px;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30,41,59,.6), rgba(16,24,42,.4));
}
.contact__avatar {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  font: 700 18px var(--font-head); color: #03121a;
  background: var(--grad); margin-bottom: 18px;
  box-shadow: 0 10px 30px -10px rgba(0,240,255,.7);
}
.contact h3 { font-size: 1.35rem; }
.contact__role { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.contact__lede { color: #c9d3e0; font-size: 15px; margin-bottom: 24px; }
.contact__wa { width: 100%; justify-content: center; }
.contact__dl { display: block; margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--muted); transition: color .25s; }
.contact__dl:hover { color: var(--cyan); }

/* ---------- GIROS ---------- */
.ideas__label b { color: var(--text); font-weight: 600; }
.giros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.giros button {
  font: 500 14px var(--font-head); color: var(--muted);
  padding: 10px 16px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(16,24,42,.6);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.giros button:hover { border-color: rgba(0,240,255,.5); color: var(--text); }
.giros button[aria-selected="true"] { background: var(--cyan); border-color: var(--cyan); color: #03121a; }
.ideas__chips li { animation: chipIn .45s var(--ease-out) both; }
.ideas__chips li:nth-child(2) { animation-delay: .04s; } .ideas__chips li:nth-child(3) { animation-delay: .08s; }
.ideas__chips li:nth-child(4) { animation-delay: .12s; } .ideas__chips li:nth-child(5) { animation-delay: .16s; }
.ideas__chips li:nth-child(6) { animation-delay: .2s; }  .ideas__chips li:nth-child(7) { animation-delay: .24s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px); } }

/* Escena del reel: casa sólo para inmobiliarias; emoji para los demás giros */
.reel__house, .reel__sun { display: none; }
.reel.is-house .reel__house, .reel.is-house .reel__sun { display: block; }
.reel.is-house .reel__emoji { display: none; }
.reel__emoji {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  font-size: 92px; line-height: 1;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.45));
}

/* ---------- NAV en anchos medianos ---------- */
.redes .brand__word, .redes .nav__links a { white-space: nowrap; }
@media (max-width: 1024px) and (min-width: 761px) {
  .redes .nav__links { gap: 20px; }
  .redes .nav__links a:last-child { display: none; }
}

/* ---------- BARRA CTA MÓVIL ---------- */
.mbar { display: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .rhero__grid { grid-template-columns: 1fr; }
  .rhero { min-height: auto; padding-top: 110px; }
  .plans__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan.is-in.is-picked { transform: none; }
  .faq__grid { grid-template-columns: 1fr; }
  .contact { position: static; }
}

@media (max-width: 760px) {
  .flowline__steps { grid-template-columns: 1fr; }
  .flowline__track { display: none; }
  .pub { right: 0; top: auto; bottom: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; left: 0; }
  .pub__chip--ig { margin-left: 0; }
  .pub__chip { font-size: 12px; padding: 7px 11px; }
  .picker__opts { width: 100%; }
  .picker__opts button { flex: 1; padding: 9px 8px; }
  .addon .btn { width: 100%; justify-content: center; }

  .mbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 950;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 8px 8px 18px;
    border-radius: 100px;
    background: rgba(9,13,22,.88); backdrop-filter: blur(14px);
    border: 1px solid rgba(0,240,255,.35);
    box-shadow: 0 14px 40px -10px rgba(0,0,0,.7);
    font-size: 13px; color: var(--muted);
    transform: translateY(140%);
    transition: transform .45s var(--ease-out);
  }
  .mbar b { color: var(--text); }
  .mbar.is-on { transform: none; }
  .mbar__btn {
    font: 600 13px var(--font-head); color: #03121a;
    background: var(--cyan); padding: 11px 16px; border-radius: 100px; white-space: nowrap;
  }
  .redes .footer { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone, .reel__scene { animation: none; }
  .meter i { transform: none; }
}
