:root{
  --navy:#0B1F3B;
  --orange:#FF6A00;
  --steel:#5B6674;

  --bg:#0B1F3B;
  --text:#EAF0FF;
  --muted: rgba(91,102,116,.95);
  --border: rgba(91,102,116,.35);

  --card: rgba(255,255,255,.05);
  --shadow: 0 14px 40px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 15% 15%, rgba(255,106,0,.18), transparent 55%),
    radial-gradient(900px 500px at 80% 25%, rgba(11,31,59,.65), transparent 60%),
    var(--bg);
  color: var(--text);
}

a{ color:inherit; text-decoration:none; }

/* ✅ container estable */
.container{ width:min(1180px, 92%); margin:0 auto; }

.muted{ color: var(--muted); }
.accent{ color:#fff; }
.accent2{ color: var(--orange); }
p, li, label, span, div, h1, h2, h3, h4, h5, h6 { color: inherit; }

/* ===== TOPBAR ===== */
.topbar{
  position: sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,20,37,.62);
  border-bottom:1px solid var(--border);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 0;
}

.brand__logo{
  height:72px;
  width:auto;
  display:block;
}

.topbar__right{
  display:flex;
  align-items:center;
  gap:10px;
}

.topbar__customer-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}

.topbar__customer-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.topbar__customer-row--secondary .pill{
  padding:8px 11px;
  font-size:13px;
}

.page-customer-portal .topbar{
  background:
    linear-gradient(180deg, rgba(6,18,33,.92), rgba(10,27,49,.86));
  border-bottom:1px solid rgba(255,255,255,.08);
}

.page-customer-portal .topbar__right{
  gap:12px;
}

.page-customer-portal .topbar__contact{
  background: rgba(255,255,255,.04);
}

.topbar .lang-switcher{
  margin:0;
}

.topbar .lang-switcher__btn,
.topbar button.lang-switcher__btn,
.topbar .pill--lang{
  appearance:none !important;
  -webkit-appearance:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:92px;
  height:40px;
  padding:9px 12px !important;
  border-radius:999px !important;
  border:1px solid rgba(220,230,255,.22) !important;
  background: rgba(255,255,255,.03) !important;
  color: rgba(245,248,255,.92) !important;
  font-family: inherit !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  box-shadow:none !important;
  cursor:pointer !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.topbar .lang-switcher__btn:hover,
.topbar button.lang-switcher__btn:hover,
.topbar .pill--lang:hover{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(220,230,255,.35) !important;
  color: rgba(245,248,255,.98) !important;
  transform: translateY(-1px);
}

.topbar__contact{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background: rgba(255,255,255,.03);
}

.dot{
  width:8px; height:8px;
  border-radius:50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,106,0,.15);
}

/* ===== BUTTONS (custom theme) ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  padding:10px 14px;
  font-weight:800;
  letter-spacing:.2px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.btn--primary{
  background: linear-gradient(135deg, var(--orange), #ff8b3d);
  color:#111;
  border:none;
  box-shadow: 0 10px 24px rgba(255,106,0,.22);
}

.btn--ghost{
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(220,230,255,.22) !important;
  color: rgba(245,248,255,.92) !important;
}
.btn--ghost:hover{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(220,230,255,.35) !important;
}

.text-link-accent{
  color: #ff8b3d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: color .18s ease, opacity .18s ease;
  display: inline-flex;
  justify-content: flex-end;
}

.text-link-accent:hover{
  color: rgba(255,255,255,.96);
}

.btn--search{
  background: rgba(255,255,255,.06);
}

.btn--small{
  padding:8px 10px;
  border-radius:12px;
  font-weight:800;
}

/* ✅ Bootstrap buttons que aparezcan (SEARCH / Volver si son bootstrap) */
.btn-outline-light,
.btn-dark,
.btn-secondary{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(220,230,255,.22) !important;
  color: rgba(245,248,255,.95) !important;
}
.btn-outline-light:hover,
.btn-dark:hover,
.btn-secondary:hover{
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(220,230,255,.35) !important;
}

/* ===== PILLS ===== */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  font-weight:700;
  color: rgba(245,248,255,.92);
}

/* hover corporativo SOLO para pills normales */
.pill:hover{
  background: rgba(255,106,0,.22);
  border-color: rgba(255,106,0,.55);
  color: rgba(245,248,255,.98);
}

.pill.pill--request{
  background: linear-gradient(135deg, #ff6a00, #ff8f45);
  color:#111;
  border: none;
  box-shadow: 0 12px 28px rgba(255,106,0,.28);
}

.pill.pill--request:hover{
  background: linear-gradient(135deg, #ff6a00, #ff8f45);
  color:#fff;
  transform: translateY(-1px);
}

/* WhatsApp pill */
.pill--wa{
  border-color: rgba(37, 211, 102, .35);
}
.pill.pill--wa:hover{
  background: rgba(37, 211, 102, .10);
  border-color: rgba(37, 211, 102, .45);
  color: rgba(245,248,255,.98);
}

.pill--ig{
  border-color: rgba(225, 48, 108, .35);
}
.pill.pill--ig:hover{
  background: rgba(225, 48, 108, .10);
  border-color: rgba(225, 48, 108, .45);
  color: rgba(245,248,255,.98);
}



/* ===== HERO ===== */
.hero{
  position:relative;
  padding: 18px 0 18px;
  min-height: 56vh;
}

.hero__bg{
  position:absolute;
  inset:0;
  overflow:hidden;
  z-index:0;
}

.hero__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;
  opacity: .85;
  filter: contrast(1.08) saturate(1.08);
  z-index:0;
}

.hero__overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(90deg,
    rgba(7,20,37,.82) 0%,
    rgba(7,20,37,.40) 26%,
    rgba(7,20,37,.06) 50%,
    rgba(7,20,37,.40) 74%,
    rgba(7,20,37,.82) 100%
  );
}

/* ✅ NO grid aquí (Bootstrap maneja row/col) */
.hero__content,
.hero__text,
.hero__search{
  position: relative;
  z-index: 2;
}

.hero__text{
  display:inline-block;
  width: fit-content;
  max-width:min(600px, 100%);
  padding:18px 20px;
  border-radius:20px;
  background: linear-gradient(135deg,
    rgba(11,31,59,.68) 0%,
    rgba(11,31,59,.52) 55%,
    rgba(11,31,59,.34) 100%
  );
  border:1px solid rgba(220,230,255,.10);
  box-shadow: 0 12px 28px rgba(4,12,24,.20);
}

.h1{
  font-size:41px;
  line-height:.98;
  margin:0 0 12px;
  letter-spacing:-1.15px;
  text-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.hero__title-line{
  display:block;
}

.lead{
  font-size:15px;
  line-height:1.5;
  max-width:44ch;
  margin:0;
  color: rgba(234,240,255,.86);
  text-shadow: 0 4px 12px rgba(0,0,0,.16);
}

.hero__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.pill--hero-request{
  padding:12px 20px;
  border-radius:999px;
  font-weight:900;
}

.hero__search-row{
  margin-top:34px;
}

/* Search card */
.hero__search{
  border-radius:20px;
  padding:12px;
  background: rgba(7,20,37,.74);
  border: 1px solid rgba(220,230,255,.09);
  box-shadow: 0 14px 42px rgba(0,0,0,.34);
}

/* Bootstrap dark inputs/selects used in your new form */
.form-control-dark, .form-select-dark{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(91,102,116,.55) !important;
  color: #EAF0FF !important;
}

.form-control-dark::placeholder{
  color: rgba(234,240,255,.70) !important;
}

.form-select-dark option{
  color:#111;
}

.hint{
  margin-top:10px;
  font-size:12px;
  color: rgba(234,240,255,.70);
  border-top:1px solid rgba(91,102,116,.35);
  padding-top:10px;
}

/* Mobile tweaks */
@media (max-width: 980px){
  .hero{
    min-height:auto;
    padding: 18px 0 18px;
  }

  .h1{ font-size:36px; }
  .topbar__right{ flex-wrap:wrap; justify-content:flex-end; }
  .hero__text{
    display:block;
    width:auto;
    max-width:100%;
    padding:18px 18px 20px;
    border-radius:20px;
    background: linear-gradient(180deg,
      rgba(11,31,59,.82) 0%,
      rgba(11,31,59,.64) 100%
    );
  }
  .hero__search-row{
    margin-top:22px;
  }

  .hero__img{ opacity: .60; }

  .hero__overlay{
    background:
      radial-gradient(700px 420px at 20% 10%, rgba(255,106,0,.16), transparent 60%),
      linear-gradient(180deg, rgba(7,20,37,.94) 0%, rgba(7,20,37,.70) 55%, rgba(7,20,37,.40) 100%);
  }
}

/* ===== SECTIONS / CARDS ===== */
.section{ padding:34px 0; }

.section__header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.h2{ margin:0; font-size:22px; letter-spacing:-.2px; }

.cards{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}

@media (max-width: 1100px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px){
  .cards{ grid-template-columns: 1fr; }
}

.card{
  position:relative;
  border:1px solid var(--border);
  background: var(--card);
  border-radius:20px;
  padding:14px;
  box-shadow: var(--shadow);
  color: rgba(245,248,255,.96);
}

.card__badge{
  position:absolute;
  top:12px; left:12px;
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0, 168, 107, .16);
  border:1px solid rgba(0, 168, 107, .35);
}

.card__img{
  height:132px;
  border-radius:16px;
  border:1px solid var(--border);
  margin-bottom:10px;
  background:
    radial-gradient(220px 90px at 18% 18%, rgba(255,122,26,.18), transparent 55%),
    linear-gradient(135deg, rgba(24,40,67,.98), rgba(11,25,43,.95));
}

.card__img--frame{
  position:relative;
  height:220px;
  overflow:hidden;
  background:#0b192b;
}

.card__img--protected{
  background-repeat:no-repeat;
  background-position:center;
  background-size:cover;
  -webkit-user-select:none;
  user-select:none;
  -webkit-user-drag:none;
}

.card__img--protected::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(11,25,43,.06), rgba(11,25,43,.16));
  pointer-events:auto;
}

.ph{
  background:
    linear-gradient(135deg, rgba(255,106,0,.15), rgba(11,31,59,.4)),
    radial-gradient(600px 200px at 40% 30%, rgba(255,255,255,.06), transparent 60%);
}

.card__title{ margin:8px 0 6px; font-size:16px; }
.card__meta{ font-size:12px; }

.card__price{
  margin-top:10px;
  font-weight:800;
  letter-spacing:.2px;
}

.price{ color: var(--orange); }

.card__actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  align-items:center;
  justify-content:space-between;
}

/* ===== FOOTER ===== */
.footer{
  border-top:1px solid var(--border);
  background: rgba(7,20,37,.7);
  margin-top:30px;
  padding:20px 0 16px;
}

.footer__inner{
  display:grid;
  grid-template-columns: 1.1fr 1.7fr .9fr;
  align-items:center;
  gap:24px;
}

.footer__logo{
  height:36px;
  width:auto;
  display:block;
  opacity:.9;
}

.footer__brand{
  display:flex;
  gap:12px;
  align-items:center;
}

.footer__brand .muted,
.footer__meta{
  font-size:13px;
  font-weight:600;
  line-height:1.4;
}

.footer .footer__actions{
  display:grid;
  grid-template-columns: 1fr;
  gap:6px;
  padding:2px 8px;
  margin:0 10px;
}

.footer__row{
  display:flex;
  justify-content:center;
  gap:6px 16px;
}

.footer__row--main{
  flex-wrap:nowrap;
  max-width:760px;
  margin:0 auto;
}

.footer__row--social{
  flex-wrap:nowrap;
  justify-content:center;
}

.footer .footer__chip{
  display:inline-block;
  padding:2px 0;
  color: rgba(255, 148, 77, .82);
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.08px;
  transition: color .18s ease, opacity .18s ease;
  white-space:nowrap;
}

.footer .footer__chip:hover{
  color: rgba(255, 168, 107, .96);
  opacity:1;
}

.footer__meta{
  text-align:right;
  padding-left:12px;
}

/* Icon buttons (minimal, premium) */
.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 42px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(91,102,116,.35);
  background: rgba(255,255,255,.03);
  font-weight: 900;
  letter-spacing: .2px;
}

.icon-btn--ig{ border-color: rgba(225, 48, 108, .35); }
.icon-btn--in{ border-color: rgba(10, 102, 194, .35); }

.icon-btn--ig:hover{ background: rgba(225, 48, 108, .08); }
.icon-btn--in:hover{ background: rgba(10, 102, 194, .08); }

/* ===== FORM PAGES (quotes/accounts) ===== */
.form-page{
  color: rgba(245,248,255,.98);
}

.form-page .muted{
  color: rgba(220,230,255,.82);
}

.form-page .card{
  background: rgba(255,255,255,.07);
  color: rgba(245,248,255,.98);
}

.form-page .hint{
  color: rgba(220,230,255,.75);
}

.form-page .card .muted,
.section .card .muted,
.cards .card .muted,
.legal-card .muted{
  color: rgba(230,238,255,.84) !important;
}

.form-page .card a,
.section .card a,
.cards .card a{
  color: #ffffff;
}

/* ===== CUSTOMER PORTAL ===== */
.customer-portal{
  padding: 36px 0 54px;
}

.portal-hero{
  display:grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  gap:20px;
  margin-bottom:22px;
}

.portal-hero__copy,
.portal-hero__aside,
.portal-summary__card,
.portal-quote-card,
.portal-panel,
.portal-empty-state{
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(20,36,60,.94), rgba(11,25,43,.92));
  box-shadow: 0 24px 50px rgba(0,0,0,.28);
}

.portal-hero__copy{
  border-radius:28px;
  padding:28px;
  background:
    radial-gradient(500px 180px at 10% 10%, rgba(255,122,26,.18), transparent 55%),
    linear-gradient(180deg, rgba(24,40,67,.98), rgba(12,26,45,.95));
}

.portal-kicker{
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color: rgba(255,153,84,.9);
  margin-bottom:12px;
  font-weight:800;
}

.portal-title{
  margin:0 0 10px;
  font-size:42px;
  line-height:1.02;
  letter-spacing:-.04em;
}

.portal-lead{
  margin:0;
  max-width:52ch;
  font-size:16px;
  line-height:1.7;
  color: rgba(229,236,249,.82);
}

.portal-lead--compact{
  margin-bottom:14px;
  max-width:44ch;
}

.portal-hero__aside{
  border-radius:24px;
  padding:22px;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.portal-hero__aside-top{
  display:flex;
  justify-content:flex-end;
  margin: -2px -2px 2px 0;
}

.portal-metric{
  padding:12px 14px;
  border-radius:18px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.07);
}

.portal-metric__label{
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color: rgba(153,171,196,.9);
  margin-bottom:6px;
}

.portal-summary{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-bottom:18px;
}

.portal-summary--hero{
  margin-bottom:0;
}

.portal-summary__card{
  border-radius:20px;
  padding:18px 20px;
}

.portal-summary__card span{
  display:block;
  color: rgba(155,173,198,.88);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:8px;
}

.portal-summary__card strong{
  font-size:28px;
  line-height:1;
}

.portal-quotes{
  display:grid;
  gap:18px;
}

.portal-quote-card{
  border-radius:26px;
  padding:24px;
}

.portal-quote-card__header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.portal-quote-card__eyebrow{
  color: rgba(153,171,196,.88);
  font-size:12px;
  letter-spacing:.13em;
  text-transform:uppercase;
  margin-bottom:6px;
}

.portal-quote-card__id{
  font-size:28px;
  font-weight:800;
  line-height:1;
  margin-bottom:6px;
}

.portal-quote-card__date{
  color: rgba(207,217,233,.74);
}

.portal-status{
  min-width:220px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.portal-status__label{
  display:block;
  color: rgba(153,171,196,.88);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:6px;
}

.portal-status--quoted{
  background: linear-gradient(180deg, rgba(255,122,26,.22), rgba(94,45,10,.28));
  border-color: rgba(255,122,26,.42);
}

.portal-status--ready_to_quote,
.portal-status--in_review,
.portal-status--validated{
  background: linear-gradient(180deg, rgba(95,72,18,.34), rgba(53,43,16,.22));
  border-color: rgba(255,177,58,.24);
}

.portal-status--pending_verification{
  background: linear-gradient(180deg, rgba(56,68,95,.40), rgba(34,42,60,.24));
}

.portal-grid,
.portal-content-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  margin-bottom:14px;
}

.portal-panel{
  border-radius:20px;
  padding:18px;
}

.portal-panel--highlight{
  background:
    radial-gradient(360px 140px at 0% 0%, rgba(255,122,26,.16), transparent 55%),
    linear-gradient(180deg, rgba(22,39,66,.98), rgba(12,26,45,.95));
}

.portal-panel__title{
  font-size:12px;
  letter-spacing:.13em;
  text-transform:uppercase;
  color: rgba(255,153,84,.94);
  margin-bottom:10px;
  font-weight:800;
}

.portal-panel__copy{
  margin:0;
  color: rgba(232,238,248,.88);
  line-height:1.7;
}

.portal-meta{
  display:grid;
  grid-template-columns: 1fr;
  gap:0;
}

.portal-meta--grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

.portal-meta__item{
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.07);
  display:grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap:14px;
  align-items:start;
}

.portal-meta__card{
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  display:grid;
  gap:8px;
}

.portal-meta__card span{
  color: rgba(153,171,196,.88);
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.portal-meta__card--wide{
  grid-column: 1 / -1;
}

.portal-meta__item span{
  display:block;
  color: rgba(153,171,196,.88);
  font-size:12px;
  letter-spacing:.08em;
  margin-bottom:0;
  text-transform:uppercase;
}

.portal-summary-value{
  line-height:1.6;
  white-space:pre-line;
}

.portal-items,
.portal-downloads{
  display:grid;
  gap:10px;
}

.portal-item,
.portal-download{
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.portal-item__title{
  font-weight:800;
  margin-bottom:4px;
}

.portal-item__meta,
.portal-empty{
  color: rgba(207,217,233,.76);
  font-size:13px;
  line-height:1.55;
}

.portal-download{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.portal-download:hover{
  transform: translateY(-1px);
  border-color: rgba(255,122,26,.34);
  background: rgba(255,122,26,.08);
}

.portal-download__kind{
  font-weight:700;
}

.portal-download__cta{
  color: rgba(255,173,118,.96);
  font-size:13px;
  font-weight:800;
}

.portal-empty-state{
  border-radius:26px;
  padding:24px;
}

.portal-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin: 0 0 18px;
  padding: 0 4px;
}

.portal-toolbar__hint{
  color: rgba(209,219,235,.78);
  font-size:14px;
  max-width:58ch;
  text-align:right;
}

.portal-list-card{
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:20px;
  background:
    radial-gradient(420px 140px at 0% 0%, rgba(255,122,26,.10), transparent 58%),
    linear-gradient(180deg, rgba(20,36,60,.94), rgba(11,25,43,.92));
  box-shadow: 0 24px 50px rgba(0,0,0,.28);
}

.portal-list-card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.portal-list-card__subtitle{
  color: rgba(207,217,233,.76);
  font-size:14px;
  line-height:1.6;
}

.portal-table{
  display:grid;
  gap:10px;
}

.portal-table__head,
.portal-table__row{
  display:grid;
  grid-template-columns: minmax(170px, 1.15fr) minmax(150px, .7fr) minmax(210px, 1fr) minmax(140px, .7fr) auto;
  gap:14px;
  align-items:center;
}

.portal-table__head{
  padding:0 14px 8px;
  color: rgba(153,171,196,.82);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.portal-table__row{
  padding:16px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.portal-table__primary{
  font-weight:800;
  font-size:18px;
  line-height:1.15;
}

.portal-table__secondary,
.portal-table__summary{
  color: rgba(207,217,233,.76);
  font-size:13px;
  line-height:1.55;
}

.portal-status-inline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.portal-status-inline--quoted{
  background: linear-gradient(180deg, rgba(255,122,26,.22), rgba(94,45,10,.28));
  border-color: rgba(255,122,26,.42);
}

.portal-status-inline--ready_to_quote,
.portal-status-inline--in_review,
.portal-status-inline--validated{
  background: linear-gradient(180deg, rgba(95,72,18,.34), rgba(53,43,16,.22));
  border-color: rgba(255,177,58,.24);
}

.portal-status-inline--pending_verification{
  background: linear-gradient(180deg, rgba(56,68,95,.40), rgba(34,42,60,.24));
}

.portal-link-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(255,122,26,.28);
  color:#fff;
  background: rgba(255,122,26,.10);
  font-weight:800;
  text-decoration:none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.portal-link-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,122,26,.18);
  border-color: rgba(255,122,26,.42);
}

.portal-detail-topbar{
  margin-bottom:16px;
}

.portal-empty-state__title{
  font-size:24px;
  font-weight:800;
  margin-bottom:8px;
}

.portal-empty-state__copy{
  color: rgba(207,217,233,.76);
  max-width:56ch;
  line-height:1.7;
}

.request-toggle{
  padding:0;
  border:none;
  background: transparent;
  box-shadow:none;
}

.request-toggle.is-on{
  border:none;
  background: transparent;
  box-shadow:none;
}

@media (max-width: 980px){
  .portal-hero,
  .portal-grid,
  .portal-content-grid,
  .portal-summary{
    grid-template-columns: 1fr;
  }

  .portal-title{
    font-size:34px;
  }

  .portal-meta{
    grid-template-columns: 1fr;
  }

  .portal-meta--grid{
    grid-template-columns: 1fr;
  }

  .portal-meta__item{
    grid-template-columns: 1fr;
    gap:6px;
  }

  .portal-toolbar{
    flex-direction:column;
    align-items:flex-start;
  }

  .portal-toolbar__hint{
    text-align:left;
  }

  .portal-table__head{
    display:none;
  }

  .portal-table__row{
    grid-template-columns: 1fr;
    gap:10px;
  }

  .topbar__right{
    justify-content:flex-end;
  }

  .topbar__customer-stack{
    width:100%;
    align-items:flex-end;
  }
}

.form-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.form-page select,
.form-page textarea,
.card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.card select,
.card textarea{
  color: #ffffff !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(220,230,255,.24) !important;
  border-radius: 18px !important;
  min-height: 50px;
  padding: 12px 16px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.form-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])::placeholder,
.form-page textarea::placeholder,
.card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])::placeholder,
.card textarea::placeholder{
  color: rgba(230,238,255,.68) !important;
}

.form-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.form-page select:focus,
.form-page textarea:focus,
.card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.card select:focus,
.card textarea:focus{
  outline: none !important;
  border-color: rgba(255,140,61,.72) !important;
  box-shadow:
    0 0 0 4px rgba(255,106,0,.14),
    inset 0 1px 0 rgba(255,255,255,.05) !important;
  background: rgba(255,255,255,.10) !important;
}

.form-page input[type="file"],
.card input[type="file"]{
  border-radius: 18px !important;
  min-height: 54px;
  padding: 8px 10px !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(220,230,255,.24) !important;
}

.form-page input[type="file"]::file-selector-button,
.card input[type="file"]::file-selector-button{
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  margin-right: 12px;
  background: linear-gradient(135deg, rgba(255,106,0,.92), rgba(255,143,69,.92));
  color: #111;
  font-weight: 800;
  cursor: pointer;
}

.form-page option,
.card option{
  color: #111827;
}

.card__title,
.h2,
.wizard__label,
.wizard__num,
.topbar .muted,
.footer .muted{
  color: rgba(245,248,255,.96);
}

.section__header .muted{
  color: rgba(230,238,255,.82);
}

.machine-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.machine-tab{
  border:1px solid rgba(220,230,255,.18);
  background: rgba(255,255,255,.04);
  color: rgba(245,248,255,.92);
  border-radius:999px;
  padding:10px 14px;
  font-weight:800;
}

.machine-tab--active{
  background: linear-gradient(135deg, var(--orange), #ff8b3d);
  color:#111;
  border-color: transparent;
}

.machine-panel{
  display:none;
}

.machine-panel--active{
  display:block;
}

@media (max-width: 980px){
  .footer__inner{
    grid-template-columns: 1fr;
    text-align:center;
    gap:22px;
  }

  .footer__brand{
    justify-content:center;
  }

  .footer .footer__actions{
    gap:10px;
  }

  .footer__row{
    flex-wrap:wrap;
    gap:10px 18px;
  }

  .footer__row--main,
  .footer__row--social{
    flex-wrap:wrap;
  }

  .footer__meta{
    text-align:center;
  }
}

/* Wizard */
.wizard{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.wizard__step{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(220,230,255,.18);
  background: rgba(255,255,255,.03);
}

.wizard__num{
  width:26px; height:26px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  border:1px solid rgba(220,230,255,.35);
  background: rgba(255,255,255,.08);
  color: rgba(245,248,255,.98);
}

.wizard__label{
  font-weight:800;
  letter-spacing:.2px;
  color: rgba(245,248,255,.98);
}

.wizard__step.is-active{
  border-color: rgba(255,106,0,.45);
  background: rgba(255,106,0,.08);
}

.wizard__step.is-active .wizard__num{
  border-color: rgba(255,106,0,.55);
  background: rgba(255,106,0,.14);
}

.wizard__step.is-done{
  border-color: rgba(0, 168, 107, .40);
  background: rgba(0, 168, 107, .10);
}

/* ================================
   FORCE: SEARCH button en el hero
   (estado normal + hover)
   ================================ */
   .hero__search button[type="submit"],
   .hero__search .btn[type="submit"]{
     background: rgba(255,255,255,.10) !important;   /* visible desde el inicio */
     border: 1px solid rgba(220,230,255,.22) !important;
     color: rgba(245,248,255,.96) !important;
   
     border-radius: 14px !important;
     font-weight: 900 !important;
     letter-spacing: .6px !important;
     padding: 10px 14px !important;
   
     box-shadow: 0 12px 30px rgba(0,0,0,.30) !important;
   }
   
   .hero__search button[type="submit"]:hover,
   .hero__search .btn[type="submit"]:hover{
     background: rgba(255,255,255,.16) !important;
     border-color: rgba(220,230,255,.40) !important;
   }

   /* FORZAR switch aunque Django no ponga clases bootstrap */
.form-switch input[type="checkbox"]{
  -webkit-appearance: none;
  appearance: none;

  width: 3rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(220,230,255,.22);
  background: rgba(255,255,255,.12);
  position: relative;
  cursor: pointer;
  outline: none;
}

.form-switch input[type="checkbox"]::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(245,248,255,.92);
  transition: all .18s ease;
}

.form-switch input[type="checkbox"]:checked{
  background: rgba(255,106,0,.75);
  border-color: rgba(255,106,0,.85);
}

.request-toggle input[type="checkbox"]:checked{
  background: rgba(255,106,0,.85) !important;
  border-color: rgba(255,106,0,.95) !important;
}

.legal-checks{
  display:grid;
  gap:12px;
}

.legal-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  line-height:1.45;
  cursor:pointer;
}

.legal-check input[type="checkbox"]{
  -webkit-appearance:none;
  appearance:none;
  width:20px;
  height:20px;
  min-width:20px;
  margin:1px 0 0;
  border-radius:50%;
  border:1px solid rgba(220,230,255,.34);
  background: rgba(255,255,255,.06);
  position:relative;
  cursor:pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.legal-check input[type="checkbox"]::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:50%;
  background: transparent;
  transition: background .18s ease, transform .18s ease;
}

.legal-check input[type="checkbox"]:checked{
  border-color: rgba(255,140,61,.95);
  background: rgba(255,106,0,.16);
  box-shadow: 0 0 0 4px rgba(255,106,0,.12);
}

.legal-check input[type="checkbox"]:checked::after{
  background: linear-gradient(135deg, #ff6a00, #ff984f);
}

.legal-check input[type="checkbox"]:focus{
  outline:none;
  border-color: rgba(255,140,61,.95);
  box-shadow: 0 0 0 4px rgba(255,106,0,.12);
}

.form-switch input[type="checkbox"]:checked::before{
  left: calc(100% - 1.1rem - 4px);
}

.form-switch input[type="checkbox"]:focus{
  box-shadow: 0 0 0 .2rem rgba(255,106,0,.15);
}

/* Alinear switch + texto en la misma línea */
.form-check.form-switch{
  display: inline-flex;
  align-items: center;   /* ✅ centra vertical */
  gap: 10px;             /* espacio entre switch y texto */
}

.form-check.form-switch .form-check-label{
  margin: 0;             /* Bootstrap a veces mete margen */
  line-height: 1;        /* evita que “baje” */
}

/* Ajuste fino: el switch suele quedar 1px más abajo */
.form-check.form-switch input[type="checkbox"]{
  margin-top: 0;
}

/* ===== Gallery strip (premium) ===== */
.gallery-strip{
  display:flex;
  gap:14px;
  overflow-x:auto;

  /* ✅ padding grueso */
  padding:18px 18px;

  /* ✅ bordes redondos del contenedor */
  border-radius: 22px;

  /* ✅ marco suave tipo “card” */
  border: 1px solid rgba(220,230,255,.14);
  background: rgba(255,255,255,.03);
  box-shadow: 0 18px 55px rgba(0,0,0,.30);

  
}


.gallery-item{
  flex: 0 0 auto;
  width: 240px;
  height: 160px;

  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(220,230,255,.16);
  background: rgba(255,255,255,.04);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  
}

.gallery-item__media{
  width:100%;
  height:100%;
  display:block;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;
  transform: scale(1.02);
  transition: transform .18s ease, opacity .18s ease;
  opacity: .96;
}

.gallery-item:hover .gallery-item__media{
  transform: scale(1.08);
  opacity: 1;
}
