/* ==========================================================================
   ADR SOLUCIONES · Planes de arquitectura por mensualidad
   Usa los colores y tipografías de styles.css.
   ========================================================================== */

/* ---------- Portada ---------- */
.ph { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 130px var(--gutter) clamp(40px, 6vh, 70px); overflow: hidden; }
.ph__bg { position: absolute; inset: 0; z-index: -2; }
.ph__bg img { width: 100%; height: 100%; object-fit: cover; animation: kb 24s ease-in-out infinite alternate; }
.ph__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,14,15,.88), rgba(11,14,15,.45) 52%, rgba(11,14,15,.1)), linear-gradient(0deg, rgba(11,14,15,.9), rgba(11,14,15,0) 45%); }
.ph__copy { max-width: 900px; }
.ph__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(54px, min(8.4vw, 13vh), 140px); line-height: .9; }
.ph__title em { color: var(--aqua); }
.ph__lead { max-width: 540px; margin-top: 22px; font-size: clamp(16px, 1.35vw, 19px); color: rgba(246,247,246,.88); }
.ph__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ph__ctas svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ph__chips { list-style: none; margin: clamp(36px, 6vh, 60px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ph__chips li { display: flex; align-items: baseline; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 4px; background: rgba(11,14,15,.55); }
@supports (backdrop-filter: blur(1px)) { .ph__chips li { background: rgba(11,14,15,.35); backdrop-filter: blur(14px); } }
.ph__chips b { font-family: var(--f-display); font-weight: 800; font-size: 28px; color: var(--aqua); line-height: 1; }
.ph__chips span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(246,247,246,.78); }

/* ---------- Planes por tipo de negocio ---------- */
.pl { padding: clamp(90px, 11vw, 150px) var(--gutter); }
.pl__head .h2 { font-size: clamp(46px, 6.4vw, 104px); }
.pl__intro { margin-top: 16px; max-width: 560px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(246,247,246,.8); }

/* Barra fija con los 4 tipos */
.seg { position: sticky; top: 74px; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 34px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: rgba(19,24,20,.94); }
@supports (backdrop-filter: blur(1px)) { .seg { background: rgba(19,24,20,.72); backdrop-filter: blur(18px) saturate(1.3); } }
.seg__btn { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 16px 16px; border-radius: 5px; color: rgba(246,247,246,.72); transition: color .35s; }
.seg__btn:hover { color: var(--white); }
.seg__btn.is-on { color: var(--ink); }
.seg__btn svg { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.seg__btn span { font-weight: 600; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.2; }
.seg__glider { position: absolute; left: 0; top: 0; width: 0; border-radius: 5px; background: var(--aqua); box-shadow: 0 14px 34px -14px rgba(111,187,198,.7); transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease), opacity .3s; }

/* Una sección por tipo de negocio */
.grp { padding-top: clamp(60px, 7vw, 100px); scroll-margin-top: 150px; }
.grp + .grp { margin-top: clamp(30px, 4vw, 60px); border-top: 1px solid var(--line); }
.grp__head { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 22px; align-items: end; }
.grp__icon { grid-row: span 2; width: clamp(64px, 6vw, 88px); height: clamp(64px, 6vw, 88px); display: grid; place-items: center; border-radius: 50%; background: rgba(111,187,198,.12); border: 1px solid rgba(111,187,198,.4); }
.grp__icon svg { width: 52%; height: 52%; fill: none; stroke: var(--aqua); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.grp__kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-3); }
.grp__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 5vw, 80px); line-height: .92; grid-column: 2; }
.grp__title em { color: var(--aqua); }
.grp__head .cmp-toggle { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.grp__pitch { margin-top: 16px; max-width: 760px; font-size: clamp(16px, 1.35vw, 20px); color: rgba(246,247,246,.82); }
.grp .cards { margin-top: 28px; }

.cmp-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; background: none; cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color .3s, background .3s, color .3s; }
.cmp-toggle i { position: relative; width: 30px; height: 16px; border-radius: 16px; background: rgba(246,247,246,.2); transition: background .3s; }
.cmp-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); transition: transform .35s var(--ease); }
.cmp-toggle[aria-pressed="true"] i { background: var(--aqua); }
.cmp-toggle[aria-pressed="true"] i::after { transform: translateX(14px); }

@media (max-width: 860px) {
  .seg { top: 66px; display: flex; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; border-left: 0; border-right: 0; padding: 6px var(--gutter); }
  .seg::-webkit-scrollbar { display: none; }
  .seg__btn { flex: none; padding: 10px 14px; gap: 8px; }
  .seg__btn svg { width: 20px; height: 20px; }
  .seg__btn span { font-size: 13.5px; white-space: nowrap; }
  .grp { scroll-margin-top: 130px; }
  .grp__head { grid-template-columns: auto 1fr; }
  .grp__head .cmp-toggle { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: 10px; }
}

/* Calculadora: elegir tipo de negocio */
.calc__seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.calc__seg button { padding: 9px 14px; border: 1px solid rgba(11,14,15,.22); border-radius: 99px; background: none; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.calc__seg button:hover { border-color: var(--teal); }
.calc__seg button[aria-checked="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.calc__ctrl { margin-top: 26px; }

/* ---------- Tarjetas de planes ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; perspective: 1400px; align-items: stretch; }
.plan {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(170deg, var(--ink-3), var(--ink-2) 70%); border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .45s var(--ease), border-color .4s, box-shadow .4s;
}
.plan.is-swap { animation: swapIn .7s var(--ease) both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(26px) rotateX(8deg); } }
.plan.is-top { background: linear-gradient(170deg, #20383c, var(--ink-2) 75%); }
.plan.is-rec { border-color: var(--aqua); box-shadow: 0 40px 80px -40px rgba(111,187,198,.55), inset 0 0 0 1px var(--aqua); }
.plan__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(111,187,198,.18), transparent 60%); }
.plan:hover .plan__glare { opacity: 1; }
.plan__rec { position: absolute; top: 18px; right: 18px; padding: 5px 11px; border-radius: 99px; background: var(--aqua); color: var(--ink); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s var(--ease); }
.plan.is-rec .plan__rec { opacity: 1; transform: none; }
.plan__tag { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-3); }
.plan__name { margin-top: 6px; font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 3.6vw, 58px); line-height: .95; text-transform: uppercase; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 22px; }
.plan__amount { font-family: var(--f-display); font-weight: 700; font-size: clamp(42px, 3.8vw, 60px); line-height: 1; color: var(--aqua); font-variant-numeric: tabular-nums; }
.plan__price span { font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.plan__projects { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; margin-top: 18px; padding: 14px 0; border-block: 1px solid var(--line); }
.plan__num { grid-row: span 2; font-family: var(--f-display); font-weight: 800; font-size: 52px; line-height: .9; }
.plan__projects span { font-weight: 600; }
.plan__per { font-family: var(--f-mono); font-size: 11.5px; color: var(--teal-3); }
.plan__list { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 11px; flex: 1; }
.plan__list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.4; color: rgba(246,247,246,.86); }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(111,187,198,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%236FBBC6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.plan__cta { width: 100%; }
.plan__cta svg { width: 19px; height: 19px; }
@media (max-width: 1020px) { .cards { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Comparador ---------- */
.cmp { margin-top: 22px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; animation: swapIn .6s var(--ease) both; }
.cmp__scroll { overflow-x: auto; }
.cmp__table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; }
.cmp__table th, .cmp__table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp__table thead th { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; background: var(--ink-2); }
.cmp__table thead th small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 11.5px; color: var(--aqua); letter-spacing: .04em; text-transform: none; }
.cmp__table th[scope="row"], .cmp__table thead th:first-child { text-align: left; font-weight: 500; color: rgba(246,247,246,.86); }
.cmp__table thead th:first-child { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--mute); }
.cmp__table tbody tr:hover { background: rgba(111,187,198,.06); }
.cmp__table td b { font-family: var(--f-display); font-size: 28px; }
.cmp__table .yes { color: var(--aqua); font-size: 18px; }
.cmp__table .no { color: var(--mute); }
.pl__note { margin-top: 22px; font-size: 13px; color: var(--mute); }
.pl__note a { color: var(--teal-3); border-bottom: 1px solid currentColor; }

/* ---------- Calculadora ---------- */
.calc { padding: clamp(90px, 11vw, 150px) var(--gutter); background: var(--paper); color: var(--ink); }
.calc .tag { color: var(--teal); }
.calc .h2 { font-size: clamp(46px, 6vw, 96px); }
.calc__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.calc__lead { margin-top: 16px; max-width: 460px; font-size: 17px; color: rgba(11,14,15,.72); }
.calc__ctrl { max-width: 520px; }
.calc__count { display: flex; align-items: baseline; gap: 14px; }
.calc__count b { font-family: var(--f-display); font-weight: 800; font-size: clamp(80px, 9vw, 130px); line-height: .85; color: var(--teal); font-variant-numeric: tabular-nums; }
.calc__count span { font-weight: 600; font-size: 18px; }
.calc input[type=range] { --fill: 37%; height: 34px; margin-top: 14px; }
.calc input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--teal) 0 var(--fill), rgba(11,14,15,.14) var(--fill)); }
.calc input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--teal) 0 var(--fill), rgba(11,14,15,.14) var(--fill)); }
.calc input[type=range]::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -12px; background: var(--white); border: 7px solid var(--teal); box-shadow: 0 8px 18px -6px rgba(11,14,15,.5); }
.calc input[type=range]::-moz-range-thumb { width: 16px; height: 16px; background: var(--white); border: 7px solid var(--teal); }
.calc__ticks { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--f-mono); font-size: 11px; color: rgba(11,14,15,.5); }

.calc__result { position: relative; padding: clamp(24px, 3vw, 38px); border-radius: 10px; background: var(--ink); color: var(--white); box-shadow: 0 50px 90px -50px rgba(11,14,15,.7); }
.calc__blocks { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.calc__blocks .b { aspect-ratio: 1; border-radius: 3px; border: 1px dashed rgba(246,247,246,.16); transition: background .35s var(--ease) var(--d), border-color .35s var(--ease) var(--d), transform .35s var(--ease) var(--d); }
.calc__blocks .b.is-plan { border-style: solid; border-color: rgba(111,187,198,.55); }
.calc__blocks .b.is-mine { background: var(--aqua); border-color: var(--aqua); transform: translateY(-2px); box-shadow: 0 6px 12px -6px rgba(111,187,198,.8); }
.calc__blocks .b.is-mine:not(.is-plan) { background: var(--luz); border-color: var(--luz); }
.calc__out { margin-top: 26px; }
.calc__label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-3); }
.calc__plan { margin-top: 6px; font-family: var(--f-display); font-weight: 800; font-size: clamp(50px, 5vw, 78px); line-height: .9; text-transform: uppercase; color: var(--aqua); }
.calc__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; padding: 16px 0; border-block: 1px solid var(--line); }
.calc__nums b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 2.6vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.calc__nums span { font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.calc__extra { margin: 14px 0 20px; color: rgba(246,247,246,.8); font-size: 15px; min-height: 1.5em; }
.calc__result .btn { width: 100%; }
@media (max-width: 900px) { .calc__grid { grid-template-columns: 1fr; } }

/* ---------- Beneficios ---------- */
.ben { padding: clamp(90px, 11vw, 150px) var(--gutter); }
.ben__head { max-width: 1100px; }
.ben__head .h2 { font-size: clamp(44px, 6vw, 96px); }
.ben__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.ben__card { position: relative; padding: 24px 22px 26px; min-height: 250px; display: flex; flex-direction: column; border-radius: 6px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), border-color .4s; }
.ben__card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.ben__card:hover { transform: translateY(-6px); border-color: rgba(111,187,198,.4); }
.ben__card:hover::before { transform: scaleX(1); }
.ben__n { font-family: var(--f-mono); font-size: 12px; color: var(--aqua); }
.ben__card h3 { margin-top: auto; font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 2.3vw, 36px); line-height: 1; text-transform: uppercase; }
.ben__card p { margin-top: 10px; color: rgba(246,247,246,.72); font-size: 14.5px; }
@media (max-width: 1100px) { .ben__grid { grid-template-columns: repeat(2, 1fr); } .ben__card { min-height: 200px; } }
@media (max-width: 560px) { .ben__grid { grid-template-columns: 1fr; } }

/* ---------- Cómo funciona ---------- */
.how { padding: 0 var(--gutter) clamp(90px, 11vw, 150px); }
.how__head .h2 { font-size: clamp(44px, 6vw, 96px); }
.how__steps { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.how__steps li { position: relative; padding: 0 24px 0 0; }
.how__steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: var(--line); }
.how__steps li::after { content: ""; position: absolute; left: 0; top: 19px; height: 1px; width: 0; background: var(--aqua); animation: line 6s var(--ease) infinite; }
.how__steps li:nth-child(2)::after { animation-delay: 1.5s; }
.how__steps li:nth-child(3)::after { animation-delay: 3s; }
.how__steps li:nth-child(4)::after { animation-delay: 4.5s; }
@keyframes line { 0% { width: 0; opacity: 1; } 25% { width: 100%; opacity: 1; } 40%, 100% { width: 100%; opacity: 0; } }
.how__steps span { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); border: 1px solid var(--aqua); color: var(--aqua); font-family: var(--f-mono); font-size: 12px; }
.how__steps h3 { margin-top: 22px; font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 2.4vw, 38px); line-height: 1; text-transform: uppercase; }
.how__steps p { margin-top: 10px; color: rgba(246,247,246,.72); max-width: 300px; }
@media (max-width: 900px) {
  .how__steps { grid-template-columns: 1fr; gap: 30px; }
  .how__steps li { padding: 0 0 0 60px; }
  .how__steps li::before, .how__steps li::after { display: none; }
  .how__steps span { position: absolute; left: 0; top: 0; }
  .how__steps h3 { margin-top: 4px; }
}

/* ---------- Proyectos en movimiento ---------- */
.reel { padding: 0 0 clamp(90px, 11vw, 150px); overflow: hidden; }
.reel__tag { padding: 0 var(--gutter); }
.reel__track { display: flex; gap: 12px; width: max-content; animation: reel 50s linear infinite; }
.reel__track img { width: clamp(260px, 30vw, 460px); aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.reel:hover .reel__track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }

/* ---------- Términos ---------- */
.terms { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 90px); padding: clamp(90px, 11vw, 150px) var(--gutter); background: var(--ink-2); }
.terms .h2 { font-size: clamp(44px, 5.6vw, 90px); }
.terms details { border-top: 1px solid var(--line); }
.terms details:last-child { border-bottom: 1px solid var(--line); }
.terms summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; }
.terms summary::-webkit-details-marker { display: none; }
.terms summary i { position: relative; flex: none; width: 18px; height: 18px; transition: transform .4s var(--ease); }
.terms summary i::before, .terms summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--white); transform: translate(-50%, -50%); }
.terms summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.terms details[open] summary i { transform: rotate(45deg); }
.terms ul { list-style: none; margin: 0; padding: 0 0 22px; display: grid; gap: 10px; }
.terms li { position: relative; padding-left: 22px; color: rgba(246,247,246,.78); }
.terms li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }
@media (max-width: 860px) { .terms { grid-template-columns: 1fr; } }

/* ---------- Cierre ---------- */
.pend { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(100px, 14vw, 190px) var(--gutter); background: var(--teal); }
.pend__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(60px, 10vw, 170px); line-height: .88; text-transform: uppercase; }
.pend__lead { margin: 22px 0 32px; max-width: 460px; font-size: 19px; }
.pend .btn svg { width: 19px; height: 19px; }

@media (prefers-reduced-motion: reduce) {
  .reel__track, .how__steps li::after { animation: none; }
}
