/* ─────────────────────────────────────────────────────────────
   Puerto Talleres El Palmar — sistema visual
   Paleta: azul industrial (color real de la nave) + ámbar de taller.
   Tipos: Big Shoulders Display (titulares, letra de nave/chapa) +
          IBM Plex Sans (texto, tono técnico/documental).
   ───────────────────────────────────────────────────────────── */

:root{
  --ink:        #0B1C2C;
  --blue-deep:  #0C2E4B;
  --blue:       #14548C;
  --blue-bright:#2E86D6;
  --paper:      #F3F6F8;
  --paper-alt:  #E8EDF1;
  --steel:      #55707F;
  --steel-light:#8CA0AC;
  --amber:      #D97706;
  --amber-dark: #A85A04;
  --white:      #FFFFFF;
  --line:       #D6DEE4;
  --ok:         #1E7A3D;
  --shadow: 0 12px 32px -12px rgba(11,28,44,.28);
  --shadow-sm: 0 4px 14px -6px rgba(11,28,44,.22);
  --radius: 14px;
  --maxw: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'IBM Plex Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:'Big Shoulders Display', sans-serif;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.01em;
  line-height:1.05;
  margin:0 0 .5em;
  color:var(--blue-deep);
}
h1{ font-size:clamp(2.6rem, 5.5vw, 4.6rem); font-weight:800; }
h2{ font-size:clamp(1.9rem, 3.4vw, 2.7rem); }
h3{ font-size:1.3rem; letter-spacing:.02em; }
p{ margin:0 0 1em; color:var(--steel); }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Sans',sans-serif;
  font-weight:600; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--amber-dark); margin-bottom:14px;
}
.eyebrow::before{
  content:''; width:22px; height:2px; background:var(--amber); display:inline-block;
}
section{ padding:76px 0; }
section.tight{ padding:48px 0; }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:'IBM Plex Sans',sans-serif; font-weight:600; font-size:.98rem;
  padding:14px 26px; border-radius:10px; border:2px solid transparent;
  cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-amber{ background:var(--amber); color:var(--white); box-shadow:var(--shadow-sm); }
.btn-amber:hover{ background:var(--amber-dark); }
.btn-outline{ border-color:rgba(255,255,255,.55); color:var(--white); }
.btn-outline:hover{ border-color:#fff; background:rgba(255,255,255,.08); }
.btn-navy{ background:var(--blue-deep); color:var(--white); }
.btn-navy:hover{ background:var(--ink); }
.btn-ghost{ border-color:var(--line); color:var(--blue-deep); background:var(--white); }
.btn-ghost:hover{ border-color:var(--blue); color:var(--blue); }
.btn-block{ width:100%; }
.btn svg{ width:18px; height:18px; flex:none; }

/* ── Top info bar ────────────────────────────────────────────── */
.topbar{
  background:var(--ink); color:#C7D3DC; font-size:.82rem;
}
.topbar .container{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:9px; padding-bottom:9px; flex-wrap:wrap; }
.topbar-item{ display:flex; align-items:center; gap:7px; }
.topbar-item svg{ width:14px; height:14px; opacity:.8; flex:none; }
.topbar a:hover{ color:#fff; }
.topbar-links{ display:flex; gap:18px; align-items:center; }

/* ── Header / nav ────────────────────────────────────────────── */
header.site{
  position:sticky; top:0; z-index:50;
  background:transparent;
  border-bottom:1px solid var(--line);
  isolation:isolate;
}
/* Frosted-glass fill lives on a pseudo-element, not the header itself:
   backdrop-filter (like transform/filter) turns its element into the
   containing block for position:fixed descendants — with it on the header,
   the fixed mobile nav drawer (nested inside header) collapsed to the
   header's own height instead of filling the viewport. */
header.site::before{
  content:''; position:absolute; inset:0; z-index:-1;
  background:rgba(255,255,255,.92); backdrop-filter:saturate(160%) blur(10px);
}
.nav-row{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:18px; }
.brand{ display:flex; align-items:center; gap:11px; }
.brand-mark{
  height:44px; width:70px; border-radius:8px; background:#fff;
  display:flex; align-items:center; justify-content:center; flex:none;
  border:1.5px solid var(--line); padding:4px; overflow:hidden;
}
.brand-mark img{ width:100%; height:100%; object-fit:contain; }
footer .brand-mark{ border-color:rgba(255,255,255,.18); }
.brand-text{ line-height:1.15; }
.brand-text strong{ display:block; font-family:'Big Shoulders Display',sans-serif; font-weight:800; font-size:1.18rem; letter-spacing:.02em; color:var(--blue-deep); text-transform:uppercase; }
.brand-text small{ display:block; font-size:.72rem; color:var(--steel); letter-spacing:.04em; }

nav.main-nav{ display:flex; align-items:center; gap:30px; }
nav.main-nav a{
  font-weight:600; font-size:.94rem; color:var(--blue-deep); position:relative; padding:6px 0;
}
nav.main-nav a.active,
nav.main-nav a:hover{ color:var(--blue); }
nav.main-nav a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-3px; height:3px; background:var(--amber); border-radius:2px;
}
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{ display:none; }

@media (max-width:900px){
  .nav-cta .btn-ghost{ display:none; }
  nav.main-nav{
    position:fixed; inset:64px 0 0 0; background:var(--white); flex-direction:column;
    align-items:flex-start; padding:28px 24px; gap:6px; transform:translateX(100%);
    transition:transform .25s ease; overflow-y:auto;
  }
  nav.main-nav a{ width:100%; padding:14px 4px; border-bottom:1px solid var(--line); font-size:1.05rem; }
  nav.main-nav.open{ transform:translateX(0); }
  .nav-toggle{
    display:flex; flex-direction:column; justify-content:center; gap:5px;
    width:38px; height:38px; border:none; background:none; cursor:pointer; flex:none;
  }
  .nav-toggle span{ height:2px; background:var(--blue-deep); border-radius:2px; }
  .topbar-links{ display:none; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero{
  position:relative; color:#fff; overflow:hidden;
  background:linear-gradient(115deg, rgba(6,16,26,.97) 0%, rgba(9,34,56,.95) 42%, rgba(13,56,92,.9) 100%),
             var(--blue-deep);
}
.hero-bg{
  /* Plain low-opacity composite, no blend mode: mix-blend-mode:luminosity was
     letting bright photo regions (roof skylights) punch through the dark
     gradient at near-full brightness regardless of overlay darkness, which
     is exactly what washed out the amber headline text over them. */
  position:absolute; inset:0; background-position:center; background-size:cover;
  opacity:.28;
}
.hero-inner{ position:relative; padding:96px 0 84px; display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:end; }
.hero-copy .eyebrow{ color:var(--amber); }
.hero-copy .eyebrow::before{ background:var(--amber); }
.hero h1{ color:#fff; margin-bottom:.35em; }
.hero h1 em{ font-style:normal; color:var(--amber); }
.hero-lede{ font-size:1.14rem; color:#D7E3EC; max-width:52ch; margin-bottom:28px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:38px; }
.hero-stats{ display:flex; gap:0; border-top:1px solid rgba(255,255,255,.18); padding-top:22px; flex-wrap:wrap; }
.hero-stat{ padding-right:34px; margin-right:34px; border-right:1px solid rgba(255,255,255,.18); }
.hero-stat:last-child{ border-right:none; margin-right:0; padding-right:0; }
.hero-stat b{ display:block; font-family:'Big Shoulders Display',sans-serif; font-size:2.1rem; color:#fff; line-height:1; }
.hero-stat span{ font-size:.78rem; color:#AEC3D1; letter-spacing:.03em; }

.hero-card{
  background:#fff; color:var(--ink); border-radius:var(--radius); padding:26px;
  box-shadow:var(--shadow); position:relative;
}
.hero-card img{ border-radius:9px; margin-bottom:16px; aspect-ratio:4/3; object-fit:cover; width:100%; }
.hero-card .badge{
  position:absolute; top:-14px; right:22px; background:var(--amber); color:#fff;
  font-weight:700; font-size:.78rem; padding:7px 14px; border-radius:999px; box-shadow:var(--shadow-sm);
}
.hero-card h3{ margin-bottom:6px; }
.hero-card p{ font-size:.92rem; margin-bottom:14px; }

@media (max-width:960px){
  .hero-inner{ grid-template-columns:1fr; padding:56px 0 48px; }
  .hero-stat{ padding-right:20px; margin-right:20px; }
}

/* ── Trust strip (aseguradoras / partners) ──────────────────── */
.trust-strip{ background:var(--blue-deep); color:#fff; }
.trust-strip .container{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; padding:20px 24px; }
.trust-strip p{ color:#BFD2DE; margin:0; font-weight:600; font-size:.86rem; letter-spacing:.02em; }
.badge-row{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{
  border:1px solid rgba(255,255,255,.28); border-radius:999px; padding:7px 16px;
  font-size:.82rem; font-weight:600; color:#fff; letter-spacing:.02em;
}

/* ── Services grid ───────────────────────────────────────────── */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.service-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 26px; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-sm); border-color:transparent; }
.service-icon{
  width:52px; height:52px; border-radius:12px; background:var(--paper-alt);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.service-icon svg{ width:28px; height:28px; stroke:var(--blue); }
.service-card h3{ margin-bottom:8px; }
.service-card p{ font-size:.93rem; margin-bottom:14px; }
.service-card .link{ font-weight:600; font-size:.88rem; color:var(--blue); display:inline-flex; align-items:center; gap:6px; }
.service-card .link svg{ width:14px; height:14px; }
@media (max-width:860px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .services-grid{ grid-template-columns:1fr; } }

/* ── Pricing / transparency ─────────────────────────────────── */
.pricing{ background:var(--paper-alt); }
.price-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.price-card{
  background:#fff; border-radius:12px; padding:22px 22px 20px; border:1px solid var(--line);
  display:flex; flex-direction:column; gap:6px;
}
.price-card .amount{ font-family:'Big Shoulders Display',sans-serif; font-size:2.2rem; color:var(--amber-dark); line-height:1; }
.price-card .amount small{ font-size:1rem; font-family:'IBM Plex Sans',sans-serif; color:var(--steel); font-weight:500; }
.price-card h4{ margin:2px 0 0; font-family:'IBM Plex Sans',sans-serif; font-weight:700; font-size:1rem; color:var(--blue-deep); text-transform:none; letter-spacing:0; }
.price-card p{ font-size:.86rem; margin:0; }
.price-note{ margin-top:26px; font-size:.86rem; color:var(--steel); display:flex; gap:8px; align-items:flex-start; }
.price-note svg{ width:18px; height:18px; flex:none; color:var(--ok); margin-top:1px; }
@media (max-width:860px){ .price-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .price-grid{ grid-template-columns:1fr; } }

/* ── Why trust us (stats + guarantees) ──────────────────────── */
.trust-section{ display:grid; grid-template-columns:.92fr 1.08fr; gap:56px; align-items:center; }
.trust-photo{ position:relative; }
.trust-photo img{ border-radius:var(--radius); box-shadow:var(--shadow); aspect-ratio:4/3; object-fit:cover; width:100%; }
.trust-photo .float-card{
  position:absolute; left:-24px; bottom:-24px; background:#fff; border-radius:12px; box-shadow:var(--shadow);
  padding:16px 20px; display:flex; align-items:center; gap:12px; max-width:240px;
}
.trust-photo .float-card svg{ width:30px; height:30px; color:var(--amber); flex:none; }
.trust-photo .float-card b{ display:block; font-family:'Big Shoulders Display',sans-serif; font-size:1.3rem; color:var(--blue-deep); line-height:1; }
.trust-photo .float-card span{ font-size:.78rem; color:var(--steel); }
.guarantee-list{ display:grid; gap:18px; margin-top:26px; }
.guarantee-item{ display:flex; gap:16px; }
.guarantee-item .num{
  flex:none; width:38px; height:38px; border-radius:9px; background:var(--blue-deep); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:'Big Shoulders Display',sans-serif; font-weight:700;
}
.guarantee-item h4{ margin:0 0 4px; font-size:1.05rem; color:var(--blue-deep); }
.guarantee-item p{ margin:0; font-size:.92rem; }
@media (max-width:900px){
  .trust-section{ grid-template-columns:1fr; }
  .trust-photo{ margin-bottom:20px; }
  .trust-photo .float-card{ left:14px; bottom:-20px; }
}

/* ── Testimonials ────────────────────────────────────────────── */
.reviews{ background:var(--blue-deep); color:#fff; }
.reviews .section-head h2{ color:#fff; }
.reviews .section-head p{ color:#AEC3D1; }
.review-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.review-card{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius:12px; padding:22px;
}
.stars{ color:var(--amber); font-size:.95rem; letter-spacing:2px; margin-bottom:12px; }
.review-card p{ color:#DCE6EC; font-size:.9rem; margin-bottom:16px; }
.review-who{ display:flex; align-items:center; gap:10px; }
.review-avatar{
  width:34px; height:34px; border-radius:50%; background:var(--amber); color:#1a1a1a;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem; flex:none;
}
.review-who b{ font-size:.86rem; color:#fff; display:block; }
.review-who span{ font-size:.72rem; color:#9FB4C2; }
.review-source{ margin-top:34px; text-align:center; font-size:.86rem; color:#AEC3D1; }
.review-source a{ color:var(--amber); font-weight:600; }
@media (max-width:960px){ .review-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .review-grid{ grid-template-columns:1fr; } }

/* ── Team / personal contact ─────────────────────────────────── */
.team-block{
  display:grid; grid-template-columns:.55fr 1fr; gap:40px; align-items:center;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:36px; box-shadow:var(--shadow-sm);
}
.team-block img{ border-radius:12px; aspect-ratio:3/4; object-fit:cover; width:100%; }
.team-block .role{ color:var(--amber-dark); font-weight:700; font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom:8px; }
@media (max-width:800px){ .team-block{ grid-template-columns:1fr; padding:26px; } }

/* ── Location / contact block ────────────────────────────────── */
.location{ background:var(--paper-alt); }
.location-grid{ display:grid; grid-template-columns:1fr 1fr; gap:34px; }
.info-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px; }
.info-row{ display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.info-row:last-child{ border-bottom:none; }
.info-row svg{ width:20px; height:20px; color:var(--blue); flex:none; margin-top:2px; }
.info-row b{ display:block; font-size:.86rem; color:var(--blue-deep); }
.info-row span, .info-row a{ font-size:.9rem; color:var(--steel); }
.info-row a:hover{ color:var(--blue); }
.map-frame{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow-sm); min-height:340px; }
.map-frame iframe{ width:100%; height:100%; min-height:340px; border:0; display:block; }
@media (max-width:900px){ .location-grid{ grid-template-columns:1fr; } }

/* ── Contact form ─────────────────────────────────────────────── */
.form-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:34px; box-shadow:var(--shadow-sm); }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:.82rem; font-weight:600; color:var(--blue-deep); margin-bottom:6px; }
.field input, .field textarea, .field select{
  width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:9px;
  font-family:inherit; font-size:.95rem; color:var(--ink); background:#fff;
  transition:border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--blue); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:560px){ .field-row{ grid-template-columns:1fr; } }
.hp-field{ position:absolute; left:-9999px; opacity:0; width:1px; height:1px; }
.form-note{ font-size:.8rem; color:var(--steel); margin-top:14px; }
#form-status{ font-size:.9rem; margin-top:14px; font-weight:600; }
#form-status.ok{ color:var(--ok); }
#form-status.err{ color:#B3261E; }

/* ── CTA band ─────────────────────────────────────────────────── */
.cta-band{
  background:linear-gradient(120deg, var(--blue-deep), var(--blue));
  color:#fff; border-radius:var(--radius); padding:48px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-band h2{ color:#fff; margin-bottom:6px; }
.cta-band p{ color:#CBDCE6; margin:0; }
.cta-band .ctas{ display:flex; gap:14px; flex-wrap:wrap; }

/* ── Footer ───────────────────────────────────────────────────── */
footer.site{ background:var(--ink); color:#AEBFC9; padding-top:64px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-grid h4{ color:#fff; font-family:'IBM Plex Sans',sans-serif; text-transform:none; letter-spacing:0; font-size:.92rem; font-weight:700; margin-bottom:16px; }
.footer-grid ul li{ margin-bottom:10px; font-size:.88rem; }
.footer-grid ul a:hover{ color:#fff; }
.footer-brand p{ font-size:.88rem; color:#8FA2AF; max-width:34ch; }
.footer-social{ display:flex; gap:10px; margin-top:16px; }
.footer-social a{
  width:36px; height:36px; border-radius:9px; border:1px solid rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center;
}
.footer-social a:hover{ border-color:var(--amber); color:var(--amber); }
.footer-social svg{ width:17px; height:17px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:22px 0; font-size:.78rem; color:#79909D; flex-wrap:wrap; gap:10px; }
.footer-bottom a:hover{ color:#fff; }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }

/* ── Inner pages (compramos-tu-coche, venta-de-coches, contacto) ─ */
.page-hero{
  background:linear-gradient(120deg, var(--blue-deep), var(--blue));
  color:#fff; padding:64px 0 56px;
}
.page-hero h1{ color:#fff; margin-bottom:10px; }
.page-hero p{ color:#CBDCE6; max-width:60ch; margin:0; }
.breadcrumbs{ font-size:.82rem; color:#9FB4C2; margin-bottom:16px; }
.breadcrumbs a:hover{ color:#fff; }

.steps-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.step-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
.step-card .num{
  width:36px; height:36px; border-radius:9px; background:var(--amber); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:'Big Shoulders Display',sans-serif; font-weight:700; margin-bottom:14px;
}
@media (max-width:800px){ .steps-grid{ grid-template-columns:1fr; } }

.brand-list{ display:flex; flex-wrap:wrap; gap:10px; }
.brand-list li{
  border:1px solid var(--line); background:#fff; border-radius:999px; padding:7px 15px; font-size:.84rem; color:var(--steel);
}

.empty-state{
  background:#fff; border:1.5px dashed var(--line); border-radius:var(--radius); padding:44px; text-align:center;
}
.empty-state svg{ width:44px; height:44px; color:var(--steel-light); margin:0 auto 16px; }
.empty-state h3{ margin-bottom:8px; }
.empty-state p{ max-width:46ch; margin:0 auto 22px; }

/* ── 404 ─────────────────────────────────────────────────────── */
.error-page{ min-height:60vh; display:flex; align-items:center; }
.error-page .container{ text-align:center; }
.error-page h1{ font-size:clamp(4rem,12vw,7rem); color:var(--blue-deep); }

/* ── Utilities ───────────────────────────────────────────────── */
.center{ text-align:center; }
.mt-0{ margin-top:0; }
/* Reveal-on-scroll is progressive enhancement only: content is fully visible
   without JS, and only hidden pre-animation once main.js confirms it's alive
   (html.js). This avoids ever shipping content that depends on JS to be seen. */
html.js .reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
html.js .reveal.in{ opacity:1; transform:none; }
