/* Conversion components shared by the homepage, the Hogar / Negocios / Conjuntos pages
   and the diagnosis. Patterns taken from the sector's best sites (see CONTENT_PLAN.md). */
:root{--c-red:#9e201a;--c-red-deep:#7a1813;--c-red-soft:#fbeae8;--c-ink:#171717;--c-ink-2:#333;--c-muted:#616161;--c-line:#e5e5e5;--c-wash:#f6f6f5;}

/* ---------- "Te llamamos" mini form ---------- */
.callback{border-radius:1rem;padding:1.25rem;background:#fff;color:var(--c-ink);box-shadow:0 24px 48px -28px rgb(0 0 0 / .45);}
.callback-title{margin:0;font-weight:700;font-size:1.05rem;letter-spacing:-.01em;}
.callback-sub{margin:.2rem 0 .9rem;font-size:.875rem;color:var(--c-muted);}
.callback-row{display:grid;gap:.5rem;}
@media(min-width:560px){.callback-row{grid-template-columns:1.2fr 1fr auto;}}
.callback input[type=tel],.callback select{width:100%;min-height:46px;padding:.6rem .8rem;border:1px solid #d4d4d4;border-radius:.6rem;background:#fff;font:inherit;font-size:1rem;color:var(--c-ink);}
.callback input:focus,.callback select:focus{outline:none;border-color:var(--c-red);box-shadow:0 0 0 3px rgb(158 32 26 / .18);}
.callback button{min-height:46px;padding:0 1.1rem;border:0;border-radius:.6rem;background:var(--c-red);color:#fff;font:inherit;font-weight:600;cursor:pointer;white-space:nowrap;}
.callback button:hover{background:var(--c-red-deep);}
.callback-consent{display:flex;gap:.5rem;align-items:flex-start;margin-top:.7rem;font-size:.8rem;line-height:1.45;color:var(--c-muted);}
.callback-consent input{margin-top:.15rem;accent-color:var(--c-red);}
.callback-consent a{color:var(--c-red);text-decoration:underline;}
.callback-meta{margin:.6rem 0 0;font-size:.8rem;color:var(--c-muted);}

/* ---------- Phone / app showcase ---------- */
.app-show{display:grid;gap:2.5rem;align-items:center;}
.app-show>*,.seg-hero-grid>*,.rings>*,.pkg-callout>*{min-width:0;}
@media(min-width:1024px){.app-show{grid-template-columns:minmax(0,1fr) 340px;gap:4rem;}}
.app-tabs{display:grid;gap:.5rem;margin-top:1.75rem;}
.app-tab{display:grid;grid-template-columns:2.5rem minmax(0,1fr);gap:.9rem;align-items:start;width:100%;padding:1rem 1.1rem;border:1px solid var(--c-line);border-radius:.9rem;background:#fff;text-align:left;font:inherit;color:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s,background-color .15s;}
.app-tab:hover{border-color:#cfcfcf;}
.app-tab[aria-selected=true]{border-color:var(--c-red);box-shadow:0 12px 32px -20px rgb(158 32 26 / .55);}
.app-tab-ic{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:.65rem;background:var(--c-red-soft);color:var(--c-red);}
.app-tab-ic svg{width:20px;height:20px;}
.app-tab strong{display:block;font-size:1rem;font-weight:600;color:var(--c-ink);}
.app-tab span.app-tab-d{display:block;margin-top:.15rem;font-size:.9rem;line-height:1.5;color:var(--c-muted);}
.app-note{margin-top:1rem;font-size:.8rem;color:var(--c-muted);}

.phone{position:relative;width:300px;max-width:100%;margin-inline:auto;aspect-ratio:300/610;border-radius:44px;padding:12px;background:#111;box-shadow:0 40px 80px -30px rgb(0 0 0 / .55),inset 0 0 0 2px #2b2b2b;}
.phone::before{content:"";position:absolute;top:22px;left:50%;width:90px;height:24px;transform:translateX(-50%);border-radius:14px;background:#000;z-index:3;}
.phone-screen{position:absolute;inset:12px;border-radius:34px;overflow:hidden;background:#0f1115;color:#e7e7e7;display:flex;flex-direction:column;opacity:0;visibility:hidden;transition:opacity .25s ease;}
.phone-screen.is-active{opacity:1;visibility:visible;}
.ph-status{display:flex;justify-content:space-between;padding:16px 26px 0;font-size:11px;font-weight:600;color:#cfcfcf;font-variant-numeric:tabular-nums;}
.ph-head{padding:22px 18px 10px;}
.ph-title{font-size:17px;font-weight:700;color:#fff;letter-spacing:-.01em;}
.ph-sub{margin-top:2px;font-size:11.5px;color:#9b9b9b;}
.ph-body{flex:1;padding:6px 14px 14px;display:flex;flex-direction:column;gap:8px;overflow:hidden;}
.ph-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.ph-cam{position:relative;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:linear-gradient(160deg,#3a4250,#1c2028 70%);}
.ph-cam:nth-child(2){background:linear-gradient(200deg,#4a3f35,#1f1c19 70%);}
.ph-cam:nth-child(3){background:linear-gradient(140deg,#2f4038,#171d1a 70%);}
.ph-cam:nth-child(4){background:linear-gradient(180deg,#3b3b46,#1a1a20 70%);}
.ph-cam::after{content:"";position:absolute;left:12%;right:12%;bottom:18%;height:28%;border-radius:4px;background:rgb(255 255 255 / .06);}
.ph-cam span{position:absolute;left:7px;bottom:6px;font-size:10px;font-weight:600;color:#fff;text-shadow:0 1px 2px #000;}
.ph-live{position:absolute;top:6px;left:7px;display:flex;align-items:center;gap:4px;font-size:9px;font-weight:700;letter-spacing:.06em;color:#fff;}
.ph-live::before{content:"";width:6px;height:6px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 3px rgb(239 68 68 / .25);}
.ph-big{position:relative;aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:linear-gradient(160deg,#3a4250,#161a21 75%);}
.ph-big span{position:absolute;left:10px;bottom:8px;font-size:11px;font-weight:600;color:#fff;}
.ph-timeline{position:relative;height:34px;border-radius:8px;background:#1b1e24;overflow:hidden;}
.ph-timeline i{position:absolute;top:8px;bottom:8px;width:5px;border-radius:3px;background:#f59e0b;}
.ph-timeline b{position:absolute;top:0;bottom:0;width:2px;background:#fff;}
.ph-row{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:#1b1e24;}
.ph-row-ic{flex-shrink:0;width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:rgb(158 32 26 / .35);color:#ffb4ae;}
.ph-row-ic svg{width:16px;height:16px;}
.ph-row div{min-width:0;}
.ph-row strong{display:block;font-size:12px;font-weight:600;color:#fff;}
.ph-row small{display:block;font-size:10.5px;color:#9b9b9b;}
.ph-row em{margin-left:auto;font-style:normal;font-size:10px;color:#9b9b9b;font-variant-numeric:tabular-nums;}
.ph-arm{margin:6px auto 4px;width:132px;height:132px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:radial-gradient(circle,#9e201a 0,#7a1813 70%);box-shadow:0 0 0 10px rgb(158 32 26 / .18),0 0 0 22px rgb(158 32 26 / .08);font-weight:700;color:#fff;font-size:15px;}
.ph-arm small{font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;opacity:.8;}
.ph-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;font-size:9.5px;font-weight:700;}
.ph-pill.ok{background:rgb(34 197 94 / .16);color:#6ee7a0;}
.ph-pill.warn{background:rgb(245 158 11 / .18);color:#fbbf24;}

/* ---------- Situation cards ---------- */
.situations{display:grid;gap:1rem;}
@media(min-width:720px){.situations{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(min-width:1100px){.situations{grid-template-columns:repeat(3,minmax(0,1fr));}}
.sit-card{display:flex;flex-direction:column;padding:1.6rem;border:1px solid var(--c-line);border-radius:1rem;background:#fff;}
.sit-ic{display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:.75rem;background:var(--c-red-soft);color:var(--c-red);}
.sit-ic svg{width:22px;height:22px;}
.sit-card h3{margin-top:1rem;font-size:1.15rem;}
.sit-card p{margin-top:.5rem;font-size:.9375rem;line-height:1.6;color:var(--c-muted);}
.sit-card ul{list-style:none;margin:1rem 0 0;padding:1rem 0 0;border-top:1px solid var(--c-line);display:grid;gap:.45rem;font-size:.9rem;color:var(--c-ink-2);}
.sit-card li{display:flex;gap:.5rem;}
.sit-card li::before{content:"✓";color:var(--c-red);font-weight:700;}

/* ---------- Protection rings ---------- */
.rings{display:grid;gap:2.5rem;align-items:center;}
@media(min-width:960px){.rings{grid-template-columns:420px minmax(0,1fr);gap:4rem;}}
.rings-art{width:100%;max-width:420px;margin-inline:auto;}
.rings-art text{font-family:var(--font-body,'Inter',sans-serif);}
.rings-list{list-style:none;margin:0;padding:0;display:grid;gap:1rem;}
.rings-list li{display:grid;grid-template-columns:2.25rem minmax(0,1fr);gap:1rem;padding:1.1rem 1.2rem;border-radius:.9rem;background:#fff;border:1px solid var(--c-line);}
.rings-n{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:50%;background:var(--c-red);color:#fff;font-weight:700;font-size:.9rem;}
.rings-list li>div>strong{display:block;font-size:1.05rem;color:var(--c-ink);}
.rings-list li>div>span{display:block;margin-top:.2rem;font-size:.9rem;line-height:1.55;color:var(--c-muted);}

/* ---------- Guarantees row ---------- */
.guarantees{display:grid;gap:1px;background:var(--c-line);border:1px solid var(--c-line);border-radius:1rem;overflow:hidden;}
@media(min-width:640px){.guarantees{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(min-width:1024px){.guarantees{grid-template-columns:repeat(3,minmax(0,1fr));}}
.guarantee{display:grid;grid-template-columns:2.5rem minmax(0,1fr);gap:.9rem;padding:1.35rem 1.4rem;background:#fff;}
.guarantee-ic{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:.7rem;background:var(--c-red-soft);color:var(--c-red);}
.guarantee-ic svg{width:20px;height:20px;}
.guarantee>div>strong{display:block;font-size:1rem;color:var(--c-ink);}
.guarantee>div>span{display:block;margin-top:.15rem;font-size:.875rem;line-height:1.5;color:var(--c-muted);}

/* ---------- Compare table ---------- */
.compare-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--c-line);border-radius:1rem;background:#fff;}
.compare-gr{width:100%;border-collapse:collapse;font-size:.95rem;min-width:560px;}
.compare-gr th,.compare-gr td{padding:.95rem 1.1rem;border-bottom:1px solid var(--c-line);text-align:left;vertical-align:middle;}
.compare-gr thead th{font-size:.8rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--c-muted);background:var(--c-wash);}
.compare-gr thead th.is-us{color:#fff;background:var(--c-red);}
.compare-gr tbody tr:last-child td{border-bottom:0;}
.compare-gr td:first-child{font-weight:600;color:var(--c-ink);}
.compare-gr td.is-us{background:#fdf6f5;}
.cmp-yes,.cmp-ask{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;font-size:.9rem;}
.cmp-yes{color:#15803d;}
.cmp-yes::before{content:"";width:18px;height:18px;border-radius:50%;background:#16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;}
.cmp-ask{color:var(--c-muted);font-weight:500;}

/* ---------- Response times ---------- */
.times{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr));}
@media(min-width:1024px){.times{grid-template-columns:repeat(5,minmax(0,1fr));}}
.time-card{padding:1.35rem 1.25rem;border-radius:1rem;background:#fff;border:1px solid var(--c-line);}
.time-card b{display:block;font-size:clamp(1.6rem,2.6vw,2.1rem);font-weight:700;letter-spacing:-.03em;line-height:1;color:var(--c-red);font-variant-numeric:tabular-nums;}
.time-card span{display:block;margin-top:.55rem;font-size:.875rem;line-height:1.45;color:var(--c-ink-2);}

/* ---------- Privacy pledge ---------- */
.pledge{display:grid;gap:2rem;padding:2rem;border-radius:1.25rem;background:var(--c-ink);color:#e5e5e5;}
@media(min-width:1024px){.pledge{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:3rem;padding:3rem;}}
.pledge h2{color:#fff;}
.pledge p{color:#b5b5b5;}
.pledge ul{list-style:none;margin:0;padding:0;display:grid;gap:1rem;}
.pledge li{display:grid;grid-template-columns:1.5rem minmax(0,1fr);gap:.85rem;}
.pledge li::before{content:"";width:1.5rem;height:1.5rem;margin-top:.1rem;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1 14 3.2v4.3c0 3.6-2.5 6.3-6 7.5-3.5-1.2-6-3.9-6-7.5V3.2L8 1Z' fill='%23e0675f'/%3E%3Cpath d='m5.4 8 1.8 1.8 3.4-3.6' fill='none' stroke='%23171717' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;}
.pledge li strong{display:block;color:#fff;font-weight:600;}
.pledge li span{display:block;margin-top:.15rem;font-size:.92rem;line-height:1.55;color:#b5b5b5;}

/* ---------- Segment page helpers ---------- */
.seg-hero-grid{display:grid;gap:2.5rem;align-items:center;}
@media(min-width:1024px){.seg-hero-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:4rem;}}
.pkg-callout{display:grid;gap:1.5rem;align-items:center;padding:2rem;border-radius:1.25rem;background:var(--c-wash);}
@media(min-width:900px){.pkg-callout{grid-template-columns:minmax(0,1.3fr) auto;padding:2.5rem 3rem;}}
.pkg-price{font-weight:700;font-size:clamp(2rem,4vw,2.75rem);letter-spacing:-.03em;color:var(--c-red);line-height:1;font-variant-numeric:tabular-nums;}
.faq-list{display:grid;gap:.75rem;}
.faq-list details{border:1px solid var(--c-line);border-radius:.9rem;background:#fff;padding:0 1.25rem;}
.faq-list summary{display:flex;justify-content:space-between;gap:1rem;align-items:center;min-height:60px;cursor:pointer;list-style:none;font-weight:600;color:var(--c-ink);}
.faq-list summary::-webkit-details-marker{display:none;}
.faq-list summary::after{content:"+";font-size:1.4rem;font-weight:400;color:var(--c-red);}
.faq-list details[open] summary::after{content:"−";}
.faq-list details p{margin:0 0 1.1rem;color:var(--c-muted);line-height:1.65;}

/* Callback strip (homepage): title on the left, form on the right */
.callback-band{padding:1.75rem 0;background:#f6f6f5;border-bottom:1px solid var(--c-line);}
.callback.callback--inline{box-shadow:none;border:1px solid var(--c-line);}
@media(min-width:1024px){
  .callback.callback--inline{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr);column-gap:2rem;align-items:center;padding:1.25rem 1.5rem;}
  .callback--inline .callback-title,.callback--inline .callback-sub{grid-column:1;}
  .callback--inline .callback-sub{margin-bottom:0;}
  .callback--inline .callback-row,.callback--inline .callback-consent,.callback--inline .callback-meta{grid-column:2;}
  .callback--inline .callback-row{grid-row:1 / span 2;}
  .callback--inline .callback-consent{margin-top:.5rem;}
  .callback--inline .callback-meta{display:none;}
}

/* Phone showcase on small screens: feature chips in a scrollable row, right above the phone */
@media(max-width:1023px){
  .app-tabs{display:flex;gap:.5rem;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:-1.25rem;padding:.25rem 1.25rem .5rem;scrollbar-width:none;}
  .app-tabs::-webkit-scrollbar{display:none;}
  .app-tab{flex:0 0 auto;display:flex;align-items:center;gap:.5rem;width:auto;padding:.5rem .85rem .5rem .5rem;border-radius:999px;scroll-snap-align:start;}
  .app-tab-ic{width:1.9rem;height:1.9rem;border-radius:999px;}
  .app-tab-ic svg{width:16px;height:16px;}
  .app-tab strong{font-size:.9rem;white-space:nowrap;}
  .app-tab span.app-tab-d{display:none;}
  .app-show{gap:1.5rem;}
  .phone{width:264px;}
}

/* ---------- Homepage: situation cards that start the diagnosis ---------- */
.sit-link{text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s;}
.sit-link:hover{border-color:var(--c-red);box-shadow:0 16px 36px -24px rgb(158 32 26 / .5);}
.sit-link:focus-visible{outline:3px solid rgb(158 32 26 / .35);outline-offset:2px;}
.sit-cta{margin-top:auto;padding-top:1.1rem;font-size:.9rem;font-weight:600;color:var(--c-red);}
#diagnostico{scroll-margin-top:72px;}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth;}}

/* ---------- Slim red CTA band (repeats the diagnosis call down the page) ---------- */
.cta-band{background:var(--c-red);color:#fff;}
.cta-band-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem;padding-block:1.4rem;}
.cta-band p{margin:0;font-size:1.05rem;line-height:1.45;}
.cta-band p strong{font-weight:700;}
.cta-band p span{color:rgb(255 255 255 / .85);}

/* ---------- "¿Qué pasa si…?" tabs ---------- */
.whatif{display:grid;gap:1.25rem;}
.whatif>*{min-width:0;}
@media(min-width:1024px){.whatif{grid-template-columns:340px minmax(0,1fr);gap:2.5rem;align-items:start;}}
.whatif-tabs{display:grid;gap:.5rem;}
.whatif-tab{display:flex;align-items:center;gap:.85rem;width:100%;padding:.9rem 1.1rem;border:1px solid var(--c-line);border-radius:.9rem;background:#fff;text-align:left;font:inherit;font-weight:600;color:var(--c-ink);cursor:pointer;transition:border-color .15s,box-shadow .15s;}
.whatif-tab:hover{border-color:#cfcfcf;}
.whatif-tab:focus-visible{outline:3px solid rgb(158 32 26 / .35);outline-offset:2px;}
.whatif-tab[aria-selected=true]{border-color:var(--c-red);box-shadow:0 12px 32px -20px rgb(158 32 26 / .55);}
.whatif-tab-ic{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2.4rem;height:2.4rem;border-radius:.65rem;background:var(--c-red-soft);color:var(--c-red);}
.whatif-tab-ic svg{width:19px;height:19px;}
.whatif-panel{padding:1.75rem 1.5rem;border-radius:1.1rem;background:var(--c-wash);}
@media(min-width:640px){.whatif-panel{padding:2rem 2.25rem;}}
.whatif-panel[hidden]{display:none;}
/* Numbered steps on a vertical line, like the diagnosis timeline */
.whatif-steps{list-style:none;margin:0;padding:0;counter-reset:wi;}
.whatif-steps li{position:relative;padding:0 0 1.5rem 3rem;counter-increment:wi;}
.whatif-steps li:last-child{padding-bottom:0;}
.whatif-steps li::before{content:counter(wi);position:absolute;left:0;top:-.1rem;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;background:var(--c-red);color:#fff;font-size:.85rem;font-weight:700;font-variant-numeric:tabular-nums;}
.whatif-steps li:not(:last-child)::after{content:"";position:absolute;left:calc(1rem - 1px);top:2.1rem;bottom:.2rem;width:2px;border-radius:2px;background:#e8c9c6;}
.whatif-steps strong{display:block;font-size:1.05rem;color:var(--c-ink);}
.whatif-steps span{display:block;margin-top:.2rem;font-size:.95rem;line-height:1.55;color:var(--c-muted);}
.whatif-steps a{color:var(--c-red);}
@media(max-width:1023px){
  .whatif-tabs{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:-1.25rem;padding:.25rem 1.25rem .5rem;scrollbar-width:none;}
  .whatif-tabs::-webkit-scrollbar{display:none;}
  .whatif-tab{flex:0 0 auto;width:auto;padding:.5rem .9rem .5rem .5rem;border-radius:999px;white-space:nowrap;scroll-snap-align:start;font-size:.92rem;}
  .whatif-tab-ic{width:1.9rem;height:1.9rem;border-radius:999px;}
  .whatif-tab-ic svg{width:16px;height:16px;}
}

/* Compare table on phones: each row becomes a small card (label, then both answers side by side) */
@media(max-width:639px){
  .compare-stack{min-width:0;}
  .compare-stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}
  .compare-stack tbody tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--c-line);}
  .compare-stack tbody tr:last-child{border-bottom:0;}
  .compare-stack td{border-bottom:0;padding:.7rem 1rem;}
  .compare-stack td:first-child{grid-column:1 / -1;padding:1rem 1rem .1rem;}
  .compare-stack td[data-label]::before{content:attr(data-label);display:block;margin-bottom:.2rem;font-size:.7rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--c-muted);}
  .compare-stack td.is-us{background:none;}
}
