:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#111d33;background:#f4f7fa;--brand:#b51259;--green:#06966c;--line:#dce3eb}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,input,select,textarea{font:inherit}
.hidden{display:none!important}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#fff,#f8eaf1)}
.login-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:30px;padding:34px;box-shadow:0 20px 60px #74113a1a}
.logo-mark{width:54px;height:54px;border-radius:16px;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:30px;font-weight:800}
.login-card h1{margin:16px 0 4px;font-size:30px}
.login-card h1 span,.brand span{display:block;color:var(--brand);font-size:13px;letter-spacing:.2em}
.login-card p{color:#69758a}
.auth-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:24px;padding:5px;border-radius:16px;background:#f0f2f5}
.auth-switch button{border:0;border-radius:12px;padding:11px;background:transparent;color:#69758a;font-weight:800;cursor:pointer}
.auth-switch button.active{background:#fff;color:var(--brand);box-shadow:0 3px 12px #23314d10}
.stack{display:grid;gap:14px;margin:28px 0}
.auth-name-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stack label,.form-grid label{display:grid;gap:7px;font-size:14px;font-weight:650}
.stack input,.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid #cad3df;border-radius:13px;padding:13px;background:#fff}
.primary{border:0;border-radius:14px;padding:14px 18px;background:var(--brand);color:#fff;font-weight:800;cursor:pointer}
.secondary{border:1px solid #cbd5e1;border-radius:14px;padding:12px 16px;background:#fff;color:#17243a;font-weight:700}
.error{color:#b42318!important;min-height:20px}
.consent{display:grid!important;grid-template-columns:22px 1fr;align-items:start;gap:8px!important;font-weight:500!important;line-height:1.35}
.consent input{width:18px!important;height:18px;margin:1px 0 0;padding:0!important}
.consent a{color:var(--brand)}
.topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:14px max(20px,calc((100vw - 980px)/2));position:sticky;top:0;z-index:5}
.brand{display:flex;align-items:center;gap:12px}
.brand .logo-mark{width:48px;height:48px}
.brand strong{font-size:21px}
.mode{background:#f0f2f5;padding:13px 18px;border-radius:20px;font-weight:750;color:#536077}
.mode span{color:var(--brand)}
.avatar{border:0;width:48px;height:48px;border-radius:50%;background:#f6dce7;color:#8f1247;font-weight:800}
.content{width:min(920px,100%);margin:auto;padding:28px 20px 112px}
.hero{padding:18px 0 30px}
.eyebrow{color:var(--brand);letter-spacing:.18em;font-size:13px;font-weight:850;text-transform:uppercase}
.hero h1,.page-title{font-size:clamp(30px,6vw,52px);line-height:1.05;margin:8px 0}
.hero p,.muted{color:#6b778c}
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.card,.panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px}
.card strong{font-size:26px}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}
.quick button{min-height:110px;text-align:left}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.full{grid-column:1/-1}
.section-title{grid-column:1/-1;border-top:1px solid var(--line);padding-top:18px;margin-top:6px;font-weight:850}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.loading{text-align:center;padding:50px}
.result-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:20px}
.tariff-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:24px;margin:18px 0}
.tariff-card.recommended{border:4px solid #43aa8b;padding:21px;position:relative}
.recommended-tag{margin:-21px -21px 20px;background:var(--green);color:#fff;text-align:center;padding:8px;border-radius:22px 22px 0 0;font-size:12px;font-weight:900;letter-spacing:.18em}
.tariff-company{display:flex;justify-content:space-between;gap:12px;align-items:start}
.tariff-company h2{margin:0}
.saving-grid{display:grid;grid-template-columns:1fr 1fr;border-block:1px solid var(--line);margin:22px 0}
.saving-grid div{padding:20px 0}
.saving-grid div+div{border-left:1px solid var(--line);padding-left:24px}
.saving-grid span{display:block;color:#6d798e}
.saving-grid strong{font-size:31px;color:var(--green)}
.conditions{background:#f7f9fb;border:1px solid var(--line);border-radius:20px;padding:18px;margin-top:15px}
.condition{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--line)}
.condition:last-child{border:0}
.disclaimer{font-size:13px;color:#728096;line-height:1.45}
.history-item,.opportunity{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin:12px 0}
.chat{height:330px;overflow:auto;background:#f6f8fb;border:1px solid var(--line);border-radius:18px;padding:14px;margin:14px 0}
.bubble{max-width:80%;padding:10px 13px;border-radius:15px;margin:7px 0;background:#fff}
.bubble.mine{margin-left:auto;background:#f8dbe7}
.chat-form{display:flex;gap:8px}
.chat-form input{flex:1;border:1px solid #cbd5e1;border-radius:14px;padding:12px}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:86px;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--line);display:flex;justify-content:center;z-index:6}
.bottom-nav button{width:min(150px,20%);border:0;background:transparent;color:#8591a5;font-weight:700}
.bottom-nav button.active{color:var(--brand)}
.bottom-nav i{display:block;font-size:23px;font-style:normal;margin-bottom:4px}
.toast{position:fixed;z-index:20;left:50%;bottom:105px;transform:translateX(-50%);background:#17243a;color:#fff;padding:12px 18px;border-radius:14px}
.danger{color:#b42318}
@media(max-width:650px){.mode{display:none}
.content{padding-inline:14px}
.cards,.form-grid,.quick{grid-template-columns:1fr}
.full,.section-title{grid-column:auto}
.saving-grid strong{font-size:25px}
.topbar{height:78px;padding-inline:14px}
.tariff-card{padding:18px}
.tariff-card.recommended{padding:15px}
.recommended-tag{margin:-15px -15px 18px}
.bottom-nav{height:78px}
.bottom-nav button{font-size:12px}
.auth-name-grid{grid-template-columns:1fr}
}
.bill-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px}
.bill-details{border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden}
.bill-details summary{cursor:pointer;list-style:none;padding:17px 20px;color:#536077;font-weight:800}
.bill-details summary::-webkit-details-marker{display:none}
.bill-details summary::after{content:'+';float:right;color:var(--brand);font-size:22px;line-height:18px}
.bill-details[open] summary{border-bottom:1px solid var(--line)}
.bill-details[open] summary::after{content:'−'}
.bill-details>.form-grid{padding:20px}
@media(max-width:650px){
.bill-summary{grid-template-columns:1fr}
.bill-details.full{grid-column:auto}
}

/* Experiencia visual Bentromb Ahorro */
.topbar{height:96px;padding-block:18px}
.brand .logo-mark{width:54px;height:54px;border-radius:15px}
.brand strong{font-size:24px;line-height:1.05}
.brand span{margin-top:5px;font-weight:800}
.mode{display:flex;align-items:center;gap:2px;padding:6px;background:#eef1f5;border-radius:22px;color:#68758b}
.mode span{display:block;padding:13px 17px;border-radius:17px;color:#68758b;font-size:14px}
.mode span.active{background:#fff;color:var(--brand);box-shadow:0 3px 12px #23314d10}
.content{padding-top:36px;background:#f5f7fa;min-height:calc(100vh - 96px)}

.home-hero{position:relative;overflow:hidden;min-height:500px;padding:58px 48px;border-radius:34px;background:linear-gradient(135deg,#85063c 0%,#b80954 46%,#dd226f 100%);color:#fff;box-shadow:0 22px 45px #a10b4930}
.home-hero>p{margin:0 0 20px;font-size:15px;font-weight:900;letter-spacing:.24em}
.home-hero h1{position:relative;z-index:1;max-width:660px;margin:0;font-size:clamp(42px,7vw,70px);line-height:1.08;font-weight:520;letter-spacing:-.035em}
.home-hero>span{position:relative;z-index:1;display:block;max-width:650px;margin-top:34px;font-size:21px;line-height:1.55}
.home-hero button{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;width:min(430px,100%);margin-top:38px;padding:22px 28px;border:0;border-radius:18px;background:#fff;color:#80103e;font-size:21px;font-weight:850;box-shadow:0 12px 30px #73073333}
.home-hero button b{font-size:25px;font-weight:400}
.hero-orbit{position:absolute;right:-45px;bottom:-60px;width:230px;height:230px;display:grid;place-items:center;border:2px solid #ffffff2b;border-radius:50%;font-size:88px;font-style:normal;color:#ffffffa3}
.hero-orbit::before,.hero-orbit::after{content:'';position:absolute;border:2px solid #ffffff24;border-radius:50%}
.hero-orbit::before{inset:28px}.hero-orbit::after{inset:58px}

.plan-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:24px;margin-top:34px;padding:36px;background:#fff;border:1px solid var(--line);border-radius:30px;box-shadow:0 8px 30px #17243a0b}
.plan-card p,.last-comparison>.eyebrow{margin:0;color:var(--brand);font-size:15px;font-weight:900;letter-spacing:.2em}
.plan-card h2{margin:16px 0 8px;font-size:27px;font-weight:650}
.plan-card>div>span{color:#6d798e;font-size:18px}
.plan-progress{height:12px;margin-top:28px;background:#ebedf2;border-radius:999px;overflow:hidden}
.plan-progress i{display:block;height:100%;background:linear-gradient(90deg,#c20d5d,#df4d93);border-radius:inherit}
.plan-ring{--progress:0deg;width:122px;height:122px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:radial-gradient(circle at center,#fff 0 58%,transparent 59%),conic-gradient(var(--brand) var(--progress),#e9edf2 0)}
.plan-ring strong{font-size:34px}.plan-ring span{font-size:13px;color:#748096}
.last-comparison{margin-top:48px}

.compare-intro{text-align:center;padding:34px 20px 22px}
.compare-intro .eyebrow{font-size:16px;letter-spacing:.2em}
.compare-intro h1{margin:18px 0 20px;font-size:clamp(42px,7vw,64px);font-weight:500;line-height:1.1;letter-spacing:-.035em}
.compare-intro>span{display:block;max-width:760px;margin:auto;color:#6b778c;font-size:24px;line-height:1.45}
.compare-intro.compact{padding-top:12px}
.step-progress{display:flex;justify-content:center;gap:16px;margin-top:38px}
.step-progress i{width:136px;height:8px;border-radius:999px;background:#e2e6ec}
.step-progress i:first-child{background:var(--brand)}
.upload-zone{min-height:500px;margin-top:25px;padding:46px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:4px dashed #dfa0bc;border-radius:34px;background:#fff;cursor:pointer}
.upload-icon{width:124px;height:124px;display:grid;place-items:center;margin-bottom:32px;border-radius:32px;background:#f8e1eb;color:#cf1764;font-size:60px;font-weight:350}
.upload-zone>strong{max-width:100%;font-size:38px;font-weight:520;overflow-wrap:anywhere}
.upload-zone>span{margin-top:20px;color:#718097;font-size:21px}
.upload-zone>em{margin-top:34px;padding:19px 35px;border-radius:18px;background:var(--brand);color:#fff;font-size:20px;font-style:normal;font-weight:850;box-shadow:0 12px 25px #b5125922}
.choice-divider{display:flex;align-items:center;gap:20px;margin:30px 0;color:#8b96a8}.choice-divider::before,.choice-divider::after{content:'';height:1px;background:#dce3eb;flex:1}
.manual-choice{width:100%;display:flex;align-items:center;gap:22px;padding:24px 34px;border:1px solid var(--line);border-radius:26px;background:#fff;color:#17243a;text-align:left}
.manual-choice>b{width:64px;height:64px;display:grid;place-items:center;border-radius:16px;background:#f8deea;color:var(--brand);font-size:28px}
.manual-choice>span{display:grid;gap:6px;flex:1}.manual-choice strong{font-size:25px}.manual-choice small{font-size:17px;color:#78849a}
.manual-choice>i{color:var(--brand);font-size:38px;font-style:normal;font-weight:400}
.privacy-card{display:flex;align-items:flex-start;gap:20px;margin-top:28px;padding:27px 34px;border:1px solid #ccebe0;border-radius:25px;background:#eef9f5;color:#44766a}
.privacy-card>b{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:#079a72;color:#fff;font-size:27px}
.privacy-card p{display:grid;gap:5px;margin:0}.privacy-card strong{font-size:19px}.privacy-card span{font-size:17px;line-height:1.45}
.analyze-button{width:100%;display:flex;align-items:center;justify-content:center;gap:20px;margin-top:30px;padding:23px 30px;border:0;border-radius:20px;background:var(--brand);color:#fff;font-size:25px;font-weight:850}
.analyze-button span{margin-left:auto;font-size:27px;font-weight:400}
.analyze-button:disabled{background:#cbd1dc;color:#fff;cursor:not-allowed}
.back-upload{margin:0 0 18px;padding:12px 0;border:0;background:transparent;color:var(--brand);font-weight:800}
.manual-form{padding:28px;background:#fff;border:1px solid var(--line);border-radius:28px}
.review-status{padding:18px 22px;border-radius:18px;background:#fff;border:1px solid var(--line);color:#6b778c}
.warning-list{padding:10px 22px;border:1px solid #f0d0ac;border-radius:18px;background:#fff8ed;color:#6d4820}

.analysis-overlay{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:26px;background:#243043a8;backdrop-filter:blur(8px)}
.analysis-modal{width:min(620px,100%);padding:66px 58px;text-align:center;background:#fff;border-radius:38px;box-shadow:0 30px 80px #10182766}
.analysis-bolt{width:132px;height:132px;display:grid;place-items:center;margin:0 auto 38px;border-radius:34px;background:#f8e2ec;color:var(--brand);font-size:75px}
.analysis-modal h2{margin:0;font-size:34px;font-weight:550}.analysis-modal p{margin:22px auto;color:#6b778c;font-size:21px;line-height:1.45}
.analysis-modal small{color:#7f8ba0;font-size:15px}.analysis-progress{height:12px;margin:40px 0;background:#e8ecf1;border-radius:999px;overflow:hidden}
.analysis-progress i{display:block;width:78%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#c20d5d,#df589a);animation:analysis-pulse 1.2s ease-in-out infinite alternate}
@keyframes analysis-pulse{from{width:35%;opacity:.7}to{width:88%;opacity:1}}

.analysis-summary{text-align:center;padding:20px 10px 36px}
.success-check{width:68px;height:68px;display:grid;place-items:center;margin:0 auto 22px;border-radius:50%;background:var(--green);color:#fff;font-size:36px;font-weight:800}
.analysis-summary h1{margin:22px 0 16px;font-size:clamp(36px,6vw,55px);font-weight:500}
.analysis-summary>strong{display:block;color:var(--green);font-size:clamp(50px,9vw,82px);line-height:1.08}.analysis-summary>strong small{font-size:22px;color:#354157}
.analysis-summary>span{display:block;margin-top:30px;color:#6b778c;font-size:20px}
.analyzed-bill{display:grid;gap:12px;margin-bottom:46px;padding:30px 38px;border:1px solid var(--line);border-radius:26px;background:#fff}
.analyzed-bill>span{font-size:15px;letter-spacing:.08em;color:#778399}.analyzed-bill>strong{font-size:26px}.analyzed-bill p{margin:0;color:#6b778c;font-size:18px}
.result-head{align-items:center}.result-head h1{margin:12px 0 0;font-size:42px;font-weight:500}.result-sort{padding:16px 20px;border:1px solid var(--line);border-radius:18px;background:#fff}

@media(max-width:650px){
  .topbar{height:84px;padding:14px 12px;gap:8px}.brand{gap:8px}.brand .logo-mark{width:43px;height:43px;border-radius:12px;font-size:24px}.brand strong{font-size:17px}.brand span{font-size:10px}.avatar{width:43px;height:43px}.mode{display:flex!important;padding:4px;border-radius:17px}.mode span{padding:10px 9px;border-radius:13px;font-size:11px}.content{padding:22px 14px 105px;min-height:calc(100vh - 84px)}
  .home-hero{min-height:410px;padding:38px 24px;border-radius:27px}.home-hero>p{font-size:11px}.home-hero h1{font-size:40px}.home-hero>span{margin-top:24px;font-size:17px}.home-hero button{margin-top:28px;padding:18px 20px;font-size:17px}.hero-orbit{width:170px;height:170px;font-size:60px}
  .plan-card{padding:25px 22px;border-radius:25px}.plan-card h2{font-size:20px}.plan-card>div>span{font-size:15px}.plan-ring{width:90px;height:90px}.plan-ring strong{font-size:27px}.plan-ring span{font-size:10px}
  .compare-intro{padding:20px 6px 16px}.compare-intro .eyebrow{font-size:13px}.compare-intro h1{font-size:38px;margin:13px 0 15px}.compare-intro>span{font-size:18px}.step-progress{margin-top:26px}.step-progress i{width:70px;height:5px}
  .upload-zone{min-height:360px;padding:30px 18px;border-width:3px;border-radius:28px}.upload-icon{width:86px;height:86px;margin-bottom:24px;border-radius:24px;font-size:43px}.upload-zone>strong{font-size:27px}.upload-zone>span{font-size:16px}.upload-zone>em{margin-top:27px;padding:16px 25px;font-size:17px}
  .manual-choice{padding:18px 20px;border-radius:22px;gap:14px}.manual-choice>b{width:50px;height:50px}.manual-choice strong{font-size:18px}.manual-choice small{font-size:14px}.manual-choice>i{font-size:30px}.privacy-card{padding:20px;gap:14px}.privacy-card>b{width:40px;height:40px}.privacy-card strong{font-size:16px}.privacy-card span{font-size:14px}.analyze-button{padding:19px 20px;font-size:19px;border-radius:17px}
  .manual-form{padding:18px}.analysis-modal{padding:48px 28px;border-radius:30px}.analysis-bolt{width:100px;height:100px;font-size:56px}.analysis-modal h2{font-size:27px}.analysis-modal p{font-size:17px}
  .analysis-summary{padding-top:10px}.analysis-summary h1{font-size:35px}.analysis-summary>strong{font-size:52px}.analysis-summary>strong small{font-size:17px}.analysis-summary>span{font-size:16px}.analyzed-bill{padding:24px}.analyzed-bill>strong{font-size:20px}.result-head h1{font-size:32px}.result-sort{font-size:13px;padding:12px}.result-head{gap:10px}
}

@media(max-width:390px){
  .brand strong{font-size:15px}.brand span{font-size:9px}.mode span{padding-inline:7px;font-size:10px}.avatar{width:39px;height:39px}.plan-card{grid-template-columns:1fr}.plan-ring{display:none}.home-hero h1{font-size:35px}.result-head{align-items:flex-start}.result-sort{white-space:nowrap}
}
