*,
*::before,
*::after { box-sizing: border-box; }

:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#5b6474;
  --line:#d9e0ea;
  --primary:#0f172a;
  --primary-2:#0b5c47;
  --soft:#e7f5ef;
  --danger:#b42318;
  --success:#0f766e;
  --warning:#92400e;
  --radius:22px;
  --shadow:0 18px 45px rgba(15,23,42,.08);
}

html { scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}

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

.container{
  width:min(1160px, calc(100% - 32px));
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(15,23,42,.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:78px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand-mark{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, #0f172a, #0b5c47);
  color:#fff;
  font-weight:800;
}
.brand small{
  display:block;
  color:var(--muted);
}
.site-nav{
  display:flex;
  align-items:center;
  gap:18px;
  color:var(--muted);
}
.site-nav a:hover{ color:var(--text); }

.hero{
  padding:54px 0 26px;
  background:
    radial-gradient(circle at top left, rgba(11,92,71,.14), transparent 32%),
    radial-gradient(circle at top right, rgba(15,23,42,.10), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:26px;
  align-items:start;
}
.hero-copy h1{
  margin:16px 0 14px;
  font-size:clamp(2rem, 4vw, 3.35rem);
  line-height:1.08;
  letter-spacing:-.04em;
}
.lead{
  color:var(--muted);
  max-width:720px;
  font-size:1.08rem;
}
.eyebrow,
.eyebrow-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.18em;
  font-weight:700;
  color:var(--primary-2);
}
.eyebrow-pill{
  padding:8px 14px;
  border-radius:999px;
  background:var(--soft);
}
.hero-actions,
.form-actions,
.quick-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}
.hero-points{
  margin-top:26px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
}
.point-card,
.hero-box,
.card,
.step-card,
.faq-item,
.legal-card{
  background:var(--card);
  border:1px solid rgba(15,23,42,.08);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.point-card{
  padding:18px;
}
.point-card strong{
  display:block;
  margin-bottom:6px;
}
.point-card span{
  color:var(--muted);
  font-size:.95rem;
}
.hero-box{
  padding:24px;
}
.hero-box h2{
  margin:8px 0 10px;
  font-size:1.55rem;
}
.hero-box__note,
.callout,
.notice-box{
  padding:14px 16px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid var(--line);
  color:var(--muted);
}
.check-list,
.plain-list,
.footer-list{
  margin:0;
  padding-left:18px;
}
.check-list li,
.plain-list li{ margin:0 0 10px; color:var(--muted); }

.section{ padding:54px 0; }
.section-muted{ background:#eef3f8; }
.section-head{
  max-width:780px;
  margin-bottom:26px;
}
.section-head h2,
.section-head h1{
  margin:8px 0 10px;
  font-size:clamp(1.6rem, 2.6vw, 2.55rem);
  line-height:1.12;
  letter-spacing:-.03em;
}
.section-head p{ color:var(--muted); }

.steps-grid,
.faq-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}
.step-card,
.faq-item{
  padding:22px;
}
.step-no{
  display:inline-grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--primary);
  color:#fff;
  font-weight:700;
}
.step-card h3,
.faq-item h3{
  margin:12px 0 8px;
  font-size:1.08rem;
}
.step-card p,
.faq-item p{ color:var(--muted); margin:0; }

.form-shell{ display:block; }
.form-layout{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
  gap:22px;
  align-items:start;
}
.card{
  padding:24px;
}
.stack{ display:grid; gap:18px; }
.stack-small{ display:grid; gap:12px; }
.top-switches{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:18px;
}
.switch-label{
  display:block;
  margin-bottom:8px;
  font-size:.92rem;
  font-weight:700;
  color:var(--muted);
}
.service-switch{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.service-option{
  border:none;
  border-radius:999px;
  padding:11px 16px;
  background:#eef2f7;
  color:#334155;
  font-weight:700;
}
.service-option.active{
  background:var(--primary);
  color:#fff;
}
.service-option.is-disabled,
.service-option:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.service-note,
.card-inline{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid var(--line);
  color:var(--muted);
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
}
label{ display:grid; gap:8px; }
label span{
  font-size:.92rem;
  font-weight:700;
  color:#334155;
}
input[type=text],
input[type=email],
input[type=password],
input[type=file],
select,
textarea{
  width:100%;
  border:1px solid #cdd6e1;
  border-radius:16px;
  padding:14px 15px;
  background:#fff;
  color:var(--text);
}
textarea{ resize:vertical; min-height:120px; }

.subcard{ margin-top:20px; }
.subhead{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:14px;
}
.subhead h3{ margin:0; }
.subhead p{ margin:6px 0 0; color:var(--muted); }

.pill{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
}
.pill.muted{
  background:#eef2f7;
  color:#475569;
}

.helper-text,
.upload-help,
.muted-text{ color:var(--muted); font-size:.93rem; }
.legal-note{
  margin-top:18px;
  padding:14px 16px;
  border-radius:16px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#7c2d12;
}
.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:18px;
}
.checkbox-row input{
  width:18px;
  height:18px;
  margin-top:3px;
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  border-radius:16px;
  padding:0 18px;
  border:1px solid transparent;
  font-weight:700;
  transition:.2s ease;
}
.button:hover{ transform:translateY(-1px); }
.button-primary{
  background:#0b5c47;
  color:#fff;
}
.button-dark{
  background:#0f172a;
  color:#fff;
}
.button-outline{
  background:#fff;
  border-color:#cbd5e1;
  color:#0f172a;
}
.button-ghost{
  background:transparent;
  border-color:#d5dce7;
  color:#334155;
}
.button-danger{
  background:#fff1f2;
  border-color:#fecdd3;
  color:#be123c;
}
.button-small{
  min-height:38px;
  border-radius:12px;
  padding:0 12px;
  font-size:.88rem;
}

.alert{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid;
}
.alert-success{
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#065f46;
}
.alert-error{
  background:#fff1f2;
  border-color:#fecdd3;
  color:#9f1239;
}

.estimate-card{
  background:linear-gradient(180deg, #0f172a 0%, #162033 100%);
  color:#fff;
}
.estimate-card .eyebrow{ color:#8bd4bc; }
.estimate-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
  margin:16px 0;
}
.estimate-stat{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.08);
}
.estimate-stat span{
  display:block;
  font-size:.88rem;
  color:#d9e2ef;
}
.estimate-stat strong{
  display:block;
  margin-top:6px;
  font-size:1.35rem;
}
.estimate-message{
  margin:12px 0 0;
  color:#d9e2ef;
}
.estimate-notes{
  margin:14px 0 0;
  padding-left:18px;
  color:#d9e2ef;
}
.estimate-notes li{ margin-bottom:8px; }

.site-footer{
  padding:28px 0 42px;
  background:#0f172a;
  color:#dbe4f0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr .9fr;
  gap:18px;
}
.footer-list{ margin-top:10px; }
.footer-list li{ margin-bottom:8px; }

.backoffice-page{
  background:#eef3f8;
}
.admin-header{
  background:#0f172a;
  color:#fff;
}
.admin-header-inner{
  min-height:82px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.admin-nav{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}
.admin-nav a{ color:#cbd5e1; }
.admin-nav a:hover{ color:#fff; }

.admin-grid{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:22px;
}
.sticky-card{ position:sticky; top:96px; align-self:start; }
.summary-list{ display:grid; gap:12px; }
.summary-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid var(--line);
}
.admin-main{ min-height:320px; }
.table-wrap{ overflow:auto; }
.admin-table{
  width:100%;
  border-collapse:collapse;
}
.admin-table th,
.admin-table td{
  padding:14px 12px;
  border-bottom:1px solid #e2e8f0;
  text-align:left;
  vertical-align:top;
}
.status-pill,
.active-pill{
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:.8rem;
  font-weight:700;
}
.active-pill{
  background:#dcfce7;
  color:#166534;
}
.empty-state{
  padding:24px;
  border:1px dashed #cbd5e1;
  border-radius:16px;
  color:var(--muted);
}
.catalog-columns{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
}
.catalog-item{
  display:grid;
  gap:12px;
  padding:16px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid var(--line);
}
.catalog-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.detail-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) 360px;
  gap:22px;
}
.detail-grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}
.info-block{
  padding:14px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid var(--line);
}
.reference-box{
  padding:18px;
  border-radius:18px;
  background:#0f172a;
  color:#fff;
}
.reference-box ul{ margin:12px 0 0; padding-left:18px; }
.login-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
}
.login-card{
  width:min(480px, 100%);
}
.login-form{
  display:grid;
  gap:16px;
  margin-top:18px;
}

.legal-wrap{
  max-width:920px;
}
.legal-card{
  padding:24px;
  margin-bottom:18px;
}
.legal-card h2{
  margin:0 0 12px;
  font-size:1.18rem;
}
.legal-card p,
.legal-card li{
  color:var(--muted);
}
.legal-card ul{ padding-left:18px; }

.cookie-banner{
  position:fixed;
  inset:auto 16px 16px 16px;
  z-index:70;
}
.cookie-banner__content{
  width:min(1040px, 100%);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-radius:22px;
  background:#0f172a;
  color:#fff;
  box-shadow:0 24px 55px rgba(15,23,42,.35);
}
.cookie-banner p{ margin:6px 0 0; color:#d6dfeb; max-width:720px; }
.cookie-banner__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.margin-top{ margin-top:16px; }
.margin-top-large{ margin-top:28px; }

@media (max-width: 980px){
  .hero-grid,
  .form-layout,
  .admin-grid,
  .detail-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }
  .steps-grid,
  .faq-grid,
  .catalog-columns,
  .hero-points{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
  .sticky-card{ position:static; }
  .site-nav{ display:none; }
}
@media (max-width: 720px){
  .header-inner,
  .admin-header-inner{
    flex-wrap:wrap;
    padding:10px 0;
  }
  .top-switches,
  .form-grid,
  .detail-grid-2,
  .estimate-grid,
  .steps-grid,
  .faq-grid,
  .catalog-columns,
  .hero-points{
    grid-template-columns:1fr;
  }
  .cookie-banner__content{
    flex-direction:column;
  }
}

/* v6 backoffice catalogos */
.admin-wide-stack{
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
}
.full-width-admin{
  width:100%;
  max-width:none;
}
.catalog-status-box{
  display:grid;
  gap:8px;
  justify-items:end;
  text-align:right;
}
.catalog-tabbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:20px;
}
.catalog-tab{
  border:1px solid #cdd6e1;
  background:#fff;
  color:#0f172a;
  border-radius:14px;
  min-height:44px;
  padding:0 16px;
  font-weight:700;
}
.catalog-tab.is-active{
  background:#0b5c47;
  color:#fff;
  border-color:#0b5c47;
}
.catalog-panel{
  display:none;
}
.catalog-panel.is-active{
  display:block;
}
.catalog-panel-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:18px;
}
.catalog-panel-head h3{
  margin:0;
}
.catalog-panel-head p{
  margin:6px 0 0;
  color:var(--muted);
}
.catalog-stack-grid{
  display:grid;
  gap:18px;
}
.catalog-section-block{
  padding:18px;
  border-radius:20px;
  background:#f8fafc;
  border:1px solid var(--line);
}
.catalog-section-block--narrow{
  max-width:420px;
}
.section-title-row{
  margin-bottom:14px;
}
.section-title-row h4{
  margin:0;
  font-size:1.02rem;
}
.section-title-row p{
  margin:6px 0 0;
  color:var(--muted);
}
.form-grid-compact{
  grid-template-columns:repeat(2, minmax(0,1fr));
}
.form-grid-single{
  grid-template-columns:1fr;
}
.period-cards-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
}
.period-cards-grid--two{
  grid-template-columns:repeat(2, minmax(0,1fr));
}
.period-cards-grid--bte{
  grid-template-columns:repeat(2, minmax(0,1fr));
}
.period-card{
  padding:16px;
  border-radius:18px;
  background:#fff;
  border:1px solid #dbe3ee;
}
.period-card h5{
  margin:0 0 12px;
  font-size:1rem;
}
.power-table-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px;
}
.power-table-grid label,
.period-card label{
  align-content:start;
}
.checkbox-inline-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:12px;
  font-size:.94rem;
  color:var(--muted);
}
.checkbox-inline-row input{
  width:17px;
  height:17px;
  margin-top:2px;
}
.is-readonly{
  background:#eef2f7 !important;
  color:#64748b;
}
.catalog-form-actions{
  margin-top:22px;
}
.admin-note-box{
  background:#fff;
}
.plain-list{
  margin:10px 0 0;
  padding-left:20px;
  color:var(--muted);
}
.plain-list li{
  margin-bottom:8px;
}
@media (max-width: 1100px){
  .power-table-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
  .period-cards-grid,
  .period-cards-grid--two,
  .period-cards-grid--bte{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 820px){
  .catalog-panel-head,
  .section-head.compact{
    flex-direction:column;
  }
  .catalog-status-box{
    justify-items:start;
    text-align:left;
  }
  .power-table-grid,
  .period-cards-grid,
  .period-cards-grid--two,
  .period-cards-grid--bte,
  .form-grid-compact{
    grid-template-columns:1fr;
  }
}


.tar-choice{
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  align-items:center;
}
.tar-choice__label{
  width:100%;
  font-size:.9rem;
  font-weight:700;
  color:#334155;
}
.tar-choice__item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid #cdd6e1;
  border-radius:999px;
  background:#fff;
}
.tar-choice__item input{
  width:16px;
  height:16px;
  margin:0;
}
.estimate-grid small{
  font-size:.78em;
  color:#d9e2ef;
}
