/* DeAutos España: additions on top of the shared styles.css */
.country-pill{display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:999px; background:#F2F6FB; border:1px solid var(--line); font-size:13.5px; font-weight:700; color:var(--ar-blue-deep)}

.es-hero{background:radial-gradient(1200px 400px at 20% -10%, #1B4F8A 0%, transparent 60%), linear-gradient(160deg, #0B2A4A, #12365E); color:#fff}
.es-hero-in{max-width:1240px; margin:0 auto; padding:40px 20px 34px}
.eyebrow-pill{display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18); padding:6px 12px; border-radius:999px; font-size:13px; font-weight:700}
.eyebrow-pill .dot{width:8px; height:8px; border-radius:50%; background:#2BD27E}
.es-hero h1{font-size:44px; line-height:1.08; margin:16px 0 10px; letter-spacing:-.5px}
.es-hero h1 span{display:block; color:var(--ar-yellow, #FCBF49)}
.es-hero-sub{max-width:720px; color:#D5E2F0; font-size:17px; margin:0 0 22px}
.es-search{display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:10px; align-items:end; background:#fff; color:var(--text); border-radius:16px; padding:14px; box-shadow:0 18px 40px rgba(0,0,0,.25)}
.es-search label{display:flex; flex-direction:column; gap:4px; min-width:0}
.es-search label span{font-size:12px; font-weight:700; color:var(--muted)}
.es-search select{width:100%; min-width:0; padding:11px 10px; border:1px solid var(--line); border-radius:10px; font:inherit; font-size:15px; background:#fff; color:var(--text)}
.es-search select:disabled{background:#F4F6F9; color:var(--muted)}
.es-search .btn{white-space:nowrap; height:46px}
.es-search .es-xf-toggle{display:none}
.es-hero-stats{display:flex; flex-wrap:wrap; gap:28px; margin-top:22px}
.es-hero-stats strong{display:block; font-size:24px}
.es-hero-stats span{font-size:13px; color:#B9CCE0}

.es-center{text-align:center; margin:18px 0 0}
.es-h2-gap{margin-top:26px !important}
.es-results-head{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:6px}
.es-results-head h2{margin:0; font-size:24px; color:var(--ar-blue-deep)}
.es-sort{display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--muted); font-weight:600}
.es-sort select{padding:8px 10px; border:1px solid var(--line); border-radius:10px; font:inherit; font-size:14px; background:#fff}
.es-results-sub{color:var(--muted); margin:0 0 14px}
.listings .grid{margin-top:14px}
.card-dealer .dealer-dot{background:var(--ar-blue)}

.es-gallery{display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:6px; margin:8px 0 16px}
.es-gallery img{width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:8px; background:var(--bg); cursor:pointer; transition:opacity .15s}
.es-gallery img:hover{opacity:.85}
.es-gallery img:focus-visible{outline:3px solid var(--ar-blue-deep); outline-offset:2px}
.es-table-wrap{overflow-x:auto}
.es-table{border-collapse:collapse; min-width:320px; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden}
.es-table th, .es-table td{padding:9px 16px; border-bottom:1px solid var(--line); text-align:left}
.es-table th{font-size:12.5px; color:var(--muted)}
.es-com h2 small{font-size:13px; color:var(--muted); font-weight:600}
.es-com h2 a{color:var(--ar-blue-deep); text-decoration:none}
.es-brands{margin-top:6px}
.ex-brand{text-decoration:none}
.ex-brand strong{font-size:14px}
.ex-brand small{color:var(--muted); font-size:12px}

/* DGT environmental label (estimated) */
.dgt{display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:20px; padding:0 6px; margin-right:6px; border-radius:999px; font-size:11px; font-weight:800; letter-spacing:.3px; color:#fff; vertical-align:1px}
.dgt-cero{background:#1F6FB5}
.dgt-eco{background:linear-gradient(90deg, #1F6FB5 50%, #2E9E44 50%)}
.dgt-c{background:#2E9E44}
.dgt-b{background:#F2C200; color:#3A2F00}
.dgt-big{min-width:58px; height:58px; border-radius:50%; font-size:16px; margin:0; flex:none}
.es-labels{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; margin:8px 0 14px}
.es-label{display:flex; gap:14px; align-items:center; padding:14px 16px; background:#fff; border:1px solid var(--line); border-radius:14px; text-decoration:none; color:var(--text)}
.es-label:hover{border-color:var(--ar-blue)}
.es-label strong{display:block; font-size:16px; color:var(--ar-blue-deep)}
.es-label small{display:block; color:var(--muted); font-size:13.5px; margin:2px 0 4px}
.es-label b{font-size:13.5px; color:var(--ar-blue)}
.es-note{color:var(--muted); font-size:14px}


@media (max-width:980px){
  .es-search{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .es-search .btn{grid-column:1/-1}
}
@media (max-width:640px){
  .es-hero-in{padding:26px 16px 24px}
  .es-hero h1{font-size:30px}
  .es-hero-sub{font-size:15px}
  .es-search{padding:12px; gap:8px}
  .es-search select{font-size:16px}
  .es-search .es-xf{display:none}
  .es-search.es-open .es-xf{display:flex}
  .es-search .es-xf-toggle{display:inline-flex; justify-content:center; align-items:center; height:46px; align-self:end; grid-column:auto}
  .es-labels{grid-template-columns:1fr}
  .es-hero-stats{display:grid; grid-template-columns:1fr 1fr; gap:12px 16px}
  .es-hero-stats strong{font-size:20px}
  .country-pill{display:none}
  .es-gallery{grid-template-columns:repeat(3, minmax(0, 1fr))}
  .es-results-head h2{font-size:20px}
}

/* Accounts and selling (/cuenta, /vender, /anuncio) */
.pub-wrap{max-width:980px; margin:0 auto; padding:24px 20px 60px}
.pub-hero{background:linear-gradient(180deg, #EAF3FB, #F5F8FC); border-bottom:1px solid var(--line)}
.pub-hero-in{max-width:980px; margin:0 auto; padding:26px 20px 24px}
.pub-hero h1{margin:8px 0 10px; font-size:30px; color:var(--ar-blue-deep); letter-spacing:-.4px}
.pub-hero p{margin:0; color:var(--muted); font-size:15.5px; max-width:700px}
.pub-steps{display:flex; gap:18px; margin-top:16px; flex-wrap:wrap; font-size:13px; color:var(--muted)}
.pub-steps b{color:var(--ar-blue-deep)}
.free-badge{display:inline-block; background:var(--ar-yellow, #FCBF49); color:#3A2A00; font-weight:800; font-size:11.5px; letter-spacing:.4px; text-transform:uppercase; padding:4px 12px; border-radius:999px; margin-top:8px}
.pub-card{background:#fff; border:1px solid var(--line); border-radius:14px; padding:24px; box-shadow:var(--shadow); margin-top:20px}
.pub-card h2{margin:0 0 14px; color:var(--ar-blue-deep); font-size:20px}
.pub-card.gate{text-align:center; padding:36px 20px}
.pub-card.gate p{color:var(--muted); margin:8px 0 18px}
.gate-login{font-size:13.5px}
.gate-login a{font-weight:700}
.pub-success{background:#E8F8F0; color:#0A5436; border-color:#BDE7D2}
.pub-success h2{color:#0A5436}
.pub-error{background:#FEEBEC; color:#A0181D; border:1px solid #F4C7CA; border-radius:10px; padding:10px 14px; margin:12px 0}
.photo-drop{border:2px dashed var(--ar-blue); border-radius:12px; background:#F5FAFF; padding:24px; text-align:center; cursor:pointer; margin-top:14px}
.photo-drop:hover{background:#EAF3FB}
.photo-drop b{color:var(--ar-blue-deep)}
.photo-drop small{display:block; color:var(--muted); margin-top:6px}
.photo-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:10px; margin-top:12px}
.photo-thumb{position:relative; aspect-ratio:4/3; border-radius:10px; overflow:hidden; border:1px solid var(--line)}
.photo-thumb img{width:100%; height:100%; object-fit:cover}
.photo-thumb button{position:absolute; top:6px; right:6px; width:26px; height:26px; border-radius:50%; background:rgba(11,42,74,.85); color:#fff; border:0; font-size:15px; line-height:1; cursor:pointer}
.photo-thumb .main-tag{position:absolute; bottom:0; left:0; right:0; background:rgba(11,42,74,.8); color:#fff; font-size:10.5px; text-align:center; padding:2px}
.es-sell-fine{color:var(--muted); font-size:13px; margin:14px 0 6px}
.es-done-actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.es-auth-card{max-width:440px; margin-left:auto; margin-right:auto}
.es-auth-card form{display:grid; gap:12px}
.es-auth-note{color:var(--muted); font-size:14px; margin:0 0 14px}
.es-tabs{display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; background:#F2F6FB; border-radius:12px; margin-bottom:14px}
.es-tabs button{border:0; background:transparent; padding:10px; border-radius:9px; font:inherit; font-weight:700; color:var(--muted); cursor:pointer}
.es-tabs button.active{background:#fff; color:var(--ar-blue-deep); box-shadow:0 1px 3px rgba(11,42,74,.12)}
.es-me{display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap}
.es-me h2{margin:0}
.es-me p{margin:4px 0 0}
.es-me-actions{display:flex; gap:10px; flex-wrap:wrap}
.mine-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:14px}
.mine-card{background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden}
.mine-card .ph{aspect-ratio:16/10; background:#F0F4FA; background-size:cover; background-position:center}
.mine-card .bd{padding:12px 14px}
.mine-card .t{font-weight:700; color:var(--ar-blue-deep); font-size:14.5px}
.mine-card .p{font-size:17px; font-weight:800; margin:4px 0}
.es-mine-meta{font-size:12.5px; margin:4px 0 8px}
.es-mine-note{font-size:12.5px; color:var(--muted); margin:0 0 8px}
.es-mine-price{display:flex; gap:6px; margin:8px 0}
.es-mine-price input{flex:1; min-width:0; padding:8px 10px; border:1px solid var(--line); border-radius:9px; font:inherit; font-size:14px}
.es-mine-price .btn{padding:8px 10px; font-size:12.5px; white-space:nowrap}
.mine-actions{display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:6px 10px; margin-top:8px}
.mine-actions .mine-edit{color:var(--ar-blue-deep); font-weight:700; font-size:12.5px; text-decoration:underline}
.mine-actions button{background:transparent; border:0; color:#A0181D; font-weight:700; font-size:12.5px; cursor:pointer}
.mine-actions .es-sold{background:var(--ar-blue-deep); color:#fff; padding:4px 10px; border-radius:999px}
.st{display:inline-block; padding:2px 10px; border-radius:999px; font-size:11px; font-weight:800}
.st-pending{background:#FFF6DA; color:#7A5A00}
.st-approved{background:#E8F8F0; color:#0A5436}
.st-rejected{background:#FEEBEC; color:#A0181D}
.st-sold{background:#E2EBF7; color:var(--ar-blue-deep)}
.es-sold-box{background:#F2F6FB; border-radius:12px; padding:14px; margin-top:12px}
.es-sold-box p{margin:4px 0 10px; color:var(--muted)}
.es-badge-sold{background:var(--ar-blue-deep); color:#fff}
.es-desc{white-space:normal; line-height:1.6; margin:0}
.detail-buy .btn + .btn{margin-top:8px}
.es-part{background:#F5F8FC}
.es-part-sub{color:var(--muted); margin:-6px 0 14px}
@media (max-width:640px){
  .pub-hero h1{font-size:24px}
  .pub-card{padding:18px}
  .es-account{padding:8px 12px; font-size:13.5px}
}
/* DeAutos promo at the end of every car page (sites/lib/car.js) */
.es-promo{display:flex; align-items:center; justify-content:space-between; gap:18px 28px; flex-wrap:wrap; margin:28px 0 8px; padding:24px 26px; border-radius:16px; background:linear-gradient(135deg, #0B2A4A, #1B4F8A); color:#fff}
.es-promo-text{flex:1 1 420px; min-width:0}
.es-promo-tag{display:inline-block; font-size:12px; font-weight:700; letter-spacing:.3px; text-transform:uppercase; color:#BFD8F2}
.es-promo h2{margin:6px 0 6px; font-size:22px; line-height:1.25; color:#fff}
.es-promo p{margin:0; color:#DCE8F5; font-size:15px; line-height:1.55}
.es-promo-cta{display:flex; flex-direction:column; gap:8px; flex:0 0 auto}
.es-promo .btn-primary{background:#fff; color:#0B2A4A; border:0}
.es-promo .btn-primary:hover{background:#EAF3FB; color:#0B2A4A}
.es-promo .btn-ghost{background:transparent; color:#fff; border:1px solid rgba(255,255,255,.45)}
.es-promo .btn-ghost:hover{background:rgba(255,255,255,.1); color:#fff}
@media (max-width:640px){
  .es-promo{padding:20px 18px}
  .es-promo h2{font-size:19px}
  .es-promo-cta{width:100%}
  .es-promo-cta .btn{width:100%; text-align:center}
}
/* "Te avisamos": opens the request form of the assistant (es-asistente.js) */
.es-req-cta{display:flex; align-items:center; justify-content:space-between; gap:12px 20px; flex-wrap:wrap; margin:22px 0; padding:16px 20px; border:1px solid var(--line); border-radius:14px; background:#F5F8FC}
.es-req-cta div{display:flex; flex-direction:column; gap:2px; min-width:0}
.es-req-cta strong{color:var(--ar-blue-deep); font-size:16.5px}
.es-req-cta span{color:var(--muted); font-size:14px}
.es-link-btn{background:none; border:0; padding:0; font:inherit; color:var(--ar-blue-deep); font-weight:700; text-decoration:underline; cursor:pointer}
@media (max-width:640px){ .es-req-cta .btn{width:100%} }
/* Dealers: hubs (/concesionarios), dealer page (sites/lib/dealer.js), forms (es-dealer.js), Mi concesionario (es-cuenta.js) */
.es-dealers{display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:12px; margin:14px 0 8px}
.es-dealer-card{display:flex; flex-direction:column; gap:4px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:#fff; color:inherit; text-decoration:none; min-width:0}
.es-dealer-card:hover{border-color:#1B4F8A; box-shadow:var(--shadow)}
.es-dealer-card strong{color:var(--ar-blue-deep); font-size:15.5px; overflow-wrap:anywhere}
.es-dealer-loc, .es-dealer-makes{color:var(--muted); font-size:13px}
.es-dealer-n{font-size:13.5px; font-weight:600}
.es-dealer-top{display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr); gap:16px; margin:6px 0 22px; align-items:start}
.es-dealer-info .btn{margin-bottom:8px}
.es-dealer-facts{margin:10px 0 0; display:grid; gap:6px}
.es-dealer-facts div{display:flex; gap:10px; font-size:14px}
.es-dealer-facts dt{flex:0 0 130px; color:var(--muted)}
.es-dealer-facts dd{margin:0; min-width:0; overflow-wrap:anywhere}
.es-dealer-about{white-space:pre-line; font-size:14.5px; line-height:1.55}
.es-dealer-more{text-align:center; margin:18px 0}
.es-claim{flex-wrap:wrap}
.es-claim-box{flex:1 1 100%}
.es-mini-form{display:grid; gap:10px; margin-top:10px}
.es-mini-form .field input, .es-mini-form .field select, .es-mini-form .field textarea{width:100%; box-sizing:border-box}
.es-mini-intro{margin:0; color:var(--muted); font-size:13.5px}
.es-mini-row{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.es-mini-row > *, .es-mini-form > *{min-width:0}
.es-check{display:flex; gap:8px; align-items:flex-start; font-size:13.5px; color:var(--muted)}
.es-check input{margin-top:3px}
.es-mini-ok{margin-top:10px; padding:12px 14px; border-radius:10px; background:#EAF7EF; border:1px solid #BFE5CC}
.es-mini-ok strong{color:#14633A}
.es-mini-ok p{margin:6px 0 0; font-size:14px}
.es-quiet h2{font-size:16px}
.es-my-dealer + .es-my-dealer{border-top:1px solid var(--line); margin-top:18px; padding-top:18px}
.es-my-dealer h3{margin:4px 0 12px; font-size:17px}
.es-dealer-form{display:grid; gap:10px; margin-bottom:18px}
.es-dealer-form .field input, .es-dealer-form .field textarea{width:100%; box-sizing:border-box}
.es-visit-list{display:grid; gap:8px}
.es-visit-row{display:flex; justify-content:space-between; gap:12px; align-items:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:10px; font-size:14px}
.es-visit-row > div{min-width:0; overflow-wrap:anywhere}
@media (max-width:860px){ .es-dealer-top{grid-template-columns:1fr} }
@media (max-width:640px){
  .es-mini-row{grid-template-columns:1fr}
  .es-dealer-facts dt{flex-basis:96px}
  .es-visit-row{flex-direction:column}
}
[data-claim][hidden], [data-visit][hidden]{display:none !important}
.es-mini-form .pub-error[hidden], .es-dealer-form .pub-error[hidden], .es-saved[hidden]{display:none}
