/** ==========================================================================
   RutaCoste — sistema visual
   Concepto: la carretera de noche
   ========================================================================== */

:root{
  --asphalt:#12161b;
  --asphalt-2:#1a2027;
  --asphalt-line:#2b333c;
  --paper-on-dark:#eef1ea;
  --dim-on-dark:#9aa4ac;

  --paper:#eef1ea;
  --bg:#eef1ea;
  --surface:#ffffff;
  --panel:#ffffff;
  --ink:#171c1a;
  --ink-dim:#5c655f;
  --line:#dbd8cb;

  --route:#1f6f4a;
  --route-dark:#164f36;
  --marker:#e2a33d;
  --marker-ink:#4a3106;
  --danger:#b3402f;

  --maxw:1120px;
  --radius:12px;
  --radius-sm:8px;
}


/* ==========================================================================
   BASE
   ========================================================================== */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',system-ui,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,
h2,
h3{
  font-family:'Space Grotesk',system-ui,sans-serif;
  margin:0;
  line-height:1.12;
  letter-spacing:-0.01em;
}

a{
  color:var(--route-dark);
}

img{
  max-width:100%;
}

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}

.mono{
  font-family:'IBM Plex Mono',monospace;
  font-feature-settings:"tnum" 1;
}

:focus-visible{
  outline:2px solid var(--marker);
  outline-offset:2px;
}

@media (prefers-reduced-motion:reduce){

  *{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
    scroll-behavior:auto !important;
  }

}


/* ==========================================================================
   HEADER
   ========================================================================== */


.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  max-width:var(--maxw);
  margin:0 auto;
  padding-left:24px;
  padding-right:24px;
}

.brand{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:19px;
  display:flex;
  align-items:center;
  gap:2px;
  color:var(--paper-on-dark);
  text-decoration:none;
}

.brand .dot{
  color:var(--marker);
}

.nav-links{
  display:flex;
  gap:24px;
  font-size:14px;
}

.nav-links a{
  color:var(--dim-on-dark);
  text-decoration:none;
}

.nav-links a:hover{
  color:var(--paper-on-dark);
}

@media (max-width:900px){

  .nav-links{
    gap:15px;
    font-size:13px;
  }

}

@media (max-width:760px){

  .nav-links{
    display:none;
  }

}


/* ==========================================================================
   HERO
   ========================================================================== */

.hero{
  position:relative;
  padding:76px 0 120px;
  background:var(--asphalt);
  overflow:hidden;
  isolation:isolate;
}

.hero-road{
  position:absolute;
  inset:0;
  z-index:-1;

  background:
    radial-gradient(
      ellipse 900px 500px at 50% -10%,
      rgba(31,111,74,0.25),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      #10141a 0%,
      #12161b 55%,
      #171c22 100%
    );
}


/* carretera */

.hero-road::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-6%;
  width:min(1400px,220%);
  height:78%;
  transform:translateX(-50%);

  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255,255,255,0.03) 100%
    );

  clip-path:polygon(
    46% 0%,
    54% 0%,
    86% 100%,
    14% 100%
  );

  background-color:#181e25;
  border-left:1px solid var(--asphalt-line);
  border-right:1px solid var(--asphalt-line);
}


/* línea central */

.hero-road::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-6%;
  width:10px;
  height:84%;
  transform:translateX(-50%);

  clip-path:polygon(
    46.7% 0%,
    53.3% 0%,
    76% 100%,
    24% 100%
  );

  background:
    repeating-linear-gradient(
      180deg,
      var(--marker) 0px,
      var(--marker) 26px,
      transparent 26px,
      transparent 56px
    );

  background-size:100% 168px;
  animation:roadmove 2.4s linear infinite;
  opacity:0.9;
}

@keyframes roadmove{

  from{
    background-position-y:0;
  }

  to{
    background-position-y:168px;
  }

}


.hero .wrap{
  position:relative;
}

.hero-top{
  max-width:640px;
}

.hero .eyebrow{
  font-size:13.5px;
  color:#8fd9b8;
  font-weight:600;
  margin-bottom:16px;
  display:flex;
  align-items:center;
  gap:9px;
}

.hero .eyebrow::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--marker);
  flex:none;
}

.hero h1{
  font-size:clamp(32px,4.6vw,50px);
  color:var(--paper-on-dark);
  max-width:17ch;
}

.hero p.lead{
  margin-top:20px;
  max-width:52ch;
  color:var(--dim-on-dark);
  font-size:17px;
}


/* ==========================================================================
   CALCULADORA
   ========================================================================== */

.calc-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:34px;
  margin-top:44px;

  box-shadow:
    0 24px 60px -20px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.6) inset;
}

.calc-card-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:22px;
}

.calc-card-head h2{
  font-size:16px;
}

.calc-card-head span{
  font-size:12.5px;
  color:var(--ink-dim);
}


/* selector vehículo */

.vehicle-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:22px;
}

.vchip{
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  color:var(--ink-dim);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 14px;
  cursor:pointer;

  transition:
    border-color .15s ease,
    color .15s ease,
    background .15s ease;
}

.vchip:hover{
  border-color:var(--route);
  color:var(--route-dark);
}

.vchip.active{
  background:var(--route);
  border-color:var(--route);
  color:#fff;
}


/* grid */

.calc-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
  position:relative;
}

.field label{
  font-size:13px;
  color:var(--ink-dim);
  font-weight:600;
}

.field input{
  font-family:inherit;
  font-size:16px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:#fdfcfa;
  color:var(--ink);
  width:100%;
}

.field input:focus{
  outline:2px solid var(--route);
  outline-offset:1px;
  border-color:var(--route);
}

.field-span2{
  grid-column:span 2;
}

.checkbox-row{
  display:flex;
  align-items:center;
  gap:10px;
  grid-column:span 2;
  padding-top:2px;
}

.checkbox-row input{
  width:17px;
  height:17px;
  accent-color:var(--route);
}

.checkbox-row label{
  font-size:14.5px;
  color:var(--ink);
}

@media (max-width:640px){

  .calc-grid{
    grid-template-columns:1fr;
  }

  .field-span2,
  .checkbox-row{
    grid-column:span 1;
  }

}


/* ==========================================================================
   AUTOCOMPLETADO
   ========================================================================== */

.ac-input-wrap{
  position:relative;
}

.field.autocomplete.has-selection .ac-input-wrap input{
  padding-right:52px;
}

.ac-badge{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);

  font-size:11px;
  font-weight:700;

  color:var(--route-dark);
  background:#e7f2ec;
  border-radius:5px;
  padding:3px 7px;

  letter-spacing:0.02em;
  pointer-events:none;
  display:none;
}

.field.autocomplete.has-selection .ac-badge{
  display:inline-block;
}

.currency-input-wrap{
  position:relative;
}

.currency-input-wrap input{
  padding-right:58px;
}

.currency-badge{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);

  font-size:11px;
  font-weight:700;

  color:var(--route-dark);
  background:#e7f2ec;

  border-radius:5px;
  padding:3px 7px;

  letter-spacing:0.02em;
  pointer-events:none;

  transition:
    background .2s ease,
    color .2s ease;
}

.currency-badge.updated{
  background:var(--marker);
  color:var(--marker-ink);
}


/* lista */

.ac-list{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  z-index:50;

  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);

  box-shadow:
    0 16px 32px -12px rgba(20,26,24,0.28);

  max-height:280px;
  overflow-y:auto;
  display:none;
  padding:6px;
}

.ac-list.open{
  display:block;
}

.ac-item{
  display:flex;
  align-items:baseline;
  gap:8px;

  padding:9px 10px;
  border-radius:6px;

  cursor:pointer;
  font-size:14.5px;
}

.ac-item .ac-city{
  font-weight:600;
  color:var(--ink);
}

.ac-item .ac-region{
  color:var(--ink-dim);
  font-size:13px;
}

.ac-item .ac-country{
  margin-left:auto;
  flex:none;

  font-family:'IBM Plex Mono',monospace;
  font-size:10.5px;

  color:var(--route-dark);
  background:#e7f2ec;

  border-radius:4px;
  padding:2px 6px;
}

.ac-item:hover,
.ac-item.active{
  background:var(--paper);
}

.ac-empty{
  padding:12px 10px;
  font-size:13.5px;
  color:var(--ink-dim);
}


/* ==========================================================================
   BOTÓN CALCULADORA
   ========================================================================== */

.btn-primary{
  margin-top:24px;
  width:100%;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  background:var(--route);
  color:#fff;

  border:none;
  border-radius:var(--radius-sm);

  padding:15px 24px;

  font-family:inherit;
  font-size:16px;
  font-weight:600;

  cursor:pointer;

  transition:
    background .2s ease,
    transform .1s ease;
}

.btn-primary:hover{
  background:var(--route-dark);
}

.btn-primary:active{
  transform:translateY(1px);
}

.btn-primary:disabled{
  opacity:0.65;
  cursor:progress;
}


/* ==========================================================================
   ERRORES Y RESULTADO
   ========================================================================== */

.error-msg{
  margin-top:18px;
  padding:14px 16px;

  background:#fbeee9;
  border:1px solid #e6c3b6;

  color:var(--danger);
  border-radius:var(--radius-sm);

  font-size:14.5px;
  display:none;
}

.result{
  margin-top:30px;
  padding-top:26px;
  border-top:1px solid var(--line);
  display:none;
}

.result-total{
  display:flex;
  align-items:baseline;
  gap:14px;
  flex-wrap:wrap;
}

.result-total .price{
  font-family:'IBM Plex Mono',monospace;
  font-size:44px;
  font-weight:600;
  color:var(--route-dark);
}

.result-total .cur{
  font-size:19px;
  color:var(--ink-dim);
}

.result-sub{
  margin-top:6px;
  color:var(--ink-dim);
  font-size:14.5px;
}

.result-breakdown{
  display:flex;
  gap:32px;
  margin-top:22px;
  flex-wrap:wrap;
}

.rb-item b{
  display:block;
  font-family:'IBM Plex Mono',monospace;
  font-size:19px;
}

.rb-item span{
  font-size:12.5px;
  color:var(--ink-dim);
}

.route-map{
  margin-top:22px;
  height:260px;
  border-radius:var(--radius-sm);
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--paper);
  display:none;
}

.route-map.leaflet-container{
  font-family:inherit;
}


/* ==========================================================================
   SECCIONES
   ========================================================================== */

section{
  padding:72px 0;
}

.section-head{
  max-width:620px;
  margin-bottom:36px;
}

.section-head .eyebrow{
  font-size:13.5px;
  color:var(--route-dark);
  font-weight:600;
  margin-bottom:10px;
}

.section-head h2{
  font-size:clamp(24px,3vw,32px);
}

.section-head p{
  margin-top:12px;
  color:var(--ink-dim);
  font-size:15.5px;
  max-width:60ch;
}


/* ==========================================================================
   PASOS
   ========================================================================== */

.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  position:relative;
}

.steps::before{
  content:"";

  position:absolute;
  top:19px;
  left:0;
  right:0;
  height:2px;

  background:
    repeating-linear-gradient(
      90deg,
      var(--line) 0 10px,
      transparent 10px 18px
    );
}

.step{
  position:relative;
  padding-top:56px;
  padding-right:24px;
}

.step .km{
  position:absolute;
  top:0;
  left:0;

  width:38px;
  height:38px;

  border-radius:50%;

  background:var(--paper);
  border:2px solid var(--route);
  color:var(--route-dark);

  display:flex;
  align-items:center;
  justify-content:center;

  font-family:'IBM Plex Mono',monospace;
  font-weight:600;
  font-size:13px;
}

.step b{
  display:block;
  font-family:'Space Grotesk',sans-serif;
  font-size:17px;
  margin-bottom:8px;
  font-weight:600;
}

.step p{
  color:var(--ink-dim);
  font-size:15px;
  margin:0;
}

@media (max-width:760px){

  .steps{
    grid-template-columns:1fr;
    gap:34px;
  }

  .steps::before{
    display:none;
  }

}


/* ==========================================================================
   CONTENIDO SEO
   ========================================================================== */

.seo-content{
  display:grid;
  gap:20px;
  max-width:900px;
}

.seo-block{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px;
}

.seo-block h3{
  font-size:20px;
  margin-bottom:14px;
}

.seo-block p{
  color:var(--ink-dim);
  font-size:15px;
  margin:0 0 14px;
  max-width:75ch;
}

.seo-block p:last-child{
  margin-bottom:0;
}

.seo-block ul{
  margin:16px 0;
  padding-left:20px;
  color:var(--ink-dim);
}

.seo-block li{
  margin:8px 0;
  font-size:15px;
}


/* fórmulas */

.formula{
  background:var(--paper);
  border-left:3px solid var(--route);

  padding:14px 16px;
  margin:16px 0;

  font-family:'IBM Plex Mono',monospace;
  font-size:14px;

  color:var(--route-dark);

  border-radius:4px;

  overflow-x:auto;
}


/* ejemplo */

.example-calculation{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin:22px 0;
}

.example-calculation div{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:16px;
}

.example-calculation span{
  display:block;
  color:var(--ink-dim);
  font-size:12px;
  margin-bottom:5px;
}

.example-calculation strong{
  display:block;

  font-family:'IBM Plex Mono',monospace;
  font-size:15px;

  color:var(--ink);
}


/* tabla SEO */

.distance-table{
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  overflow:hidden;
  margin:20px 0;
}

.distance-row{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;

  padding:13px 16px;

  border-bottom:1px solid var(--line);

  font-size:14px;
}

.distance-row:last-child{
  border-bottom:none;
}

.distance-row span:nth-child(2),
.distance-row strong{
  font-family:'IBM Plex Mono',monospace;
}

.distance-header{
  background:var(--paper);
  color:var(--ink-dim);
  font-size:12px;
  font-weight:600;
}

.seo-note{
  font-size:13px !important;
  color:#8a8378 !important;
}


/* botón SEO */

.seo-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  background:var(--route);
  color:#fff;

  text-decoration:none;

  border-radius:var(--radius-sm);

  padding:12px 20px;

  font-size:14px;
  font-weight:600;

  transition:
    background .2s ease,
    transform .1s ease;
}

.seo-button:hover{
  background:var(--route-dark);
}

.seo-button:active{
  transform:translateY(1px);
}


@media (max-width:760px){

  .seo-block{
    padding:22px;
  }

  .example-calculation{
    grid-template-columns:1fr 1fr;
  }

}


@media (max-width:480px){

  .example-calculation{
    grid-template-columns:1fr;
  }

  .distance-row{
    grid-template-columns:1fr 1fr 1fr;
    font-size:13px;
    padding:12px;
  }

}


/* ==========================================================================
   CONSUMOS
   ========================================================================== */

.spec-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}

table.consumo{
  width:100%;
  border-collapse:collapse;
}

table.consumo th,
table.consumo td{
  text-align:left;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  font-size:14.5px;
}

table.consumo thead th{
  color:var(--ink-dim);
  font-weight:600;
  font-size:12.5px;
  background:var(--paper);
}

table.consumo tbody tr:last-child td{
  border-bottom:none;
}

table.consumo td.num{
  font-family:'IBM Plex Mono',monospace;
}

table.consumo tbody tr{
  cursor:pointer;
  transition:background .12s ease;
}

table.consumo tbody tr:hover{
  background:#f6f8f3;
}

.foot-note{
  margin-top:16px;
  font-size:13px;
  color:#8a8378;
  max-width:70ch;
}


/* ==========================================================================
   INTERNACIONAL
   ========================================================================== */

.intl{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);

  padding:32px;

  display:grid;
  grid-template-columns:1.1fr 1fr;

  gap:32px;

  align-items:center;
}

.intl-text{
  color:var(--ink-dim);
  font-size:15.5px;
  margin:0 0 14px;
}

.intl-text.last{
  margin-bottom:0;
}

.intl-flags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.intl-flags span{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  font-weight:600;

  color:var(--route-dark);
  background:#e7f2ec;

  border-radius:6px;

  padding:6px 10px;
}

@media (max-width:760px){

  .intl{
    grid-template-columns:1fr;
  }

}


/* ==========================================================================
   FAQ
   ========================================================================== */

.faq details{
  border-bottom:1px solid var(--line);
  padding:18px 0;
}

.faq summary{
  cursor:pointer;
  font-weight:600;
  font-size:16px;
  list-style:none;

  display:flex;
  justify-content:space-between;
  gap:12px;
}

.faq summary::-webkit-details-marker{
  display:none;
}

.faq summary::after{
  content:'+';
  color:var(--route-dark);
  font-size:20px;
  flex-shrink:0;
}

.faq details[open] summary::after{
  content:'–';
}

.faq p{
  margin-top:12px;
  color:var(--ink-dim);
  font-size:15px;
  max-width:70ch;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

footer{
  background:var(--asphalt);
  padding:48px 0;
  margin-top:0;
}

footer .brand{
  color:var(--paper-on-dark);
}

.foot-row{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
}

.foot-links{
  display:flex;
  gap:22px;
  font-size:14px;
}

.foot-links a{
  color:var(--dim-on-dark);
  text-decoration:none;
}

.foot-links a:hover{
  color:var(--paper-on-dark);
}

footer .foot-note{
  margin-top:18px;
  font-size:13px;
  color:#6c7680;
  max-width:70ch;
}


/* ==========================================================================
   PÁGINAS LEGALES
   ========================================================================== */

.legal{
  padding:80px 0 100px;
  max-width:760px;
}

.legal h1{
  font-size:32px;
  margin-bottom:8px;
}

.legal .updated{
  color:var(--ink-dim);
  font-size:14px;
  margin-bottom:36px;
}

.legal h2{
  font-size:20px;
  margin-top:36px;
  margin-bottom:12px;
}

.legal p,
.legal li{
  color:var(--ink-dim);
  font-size:15.5px;
}

.legal ul{
  padding-left:20px;
}

.legal .placeholder{
  background:#fdf3e3;
  border:1px solid #eecf9c;
  padding:2px 6px;
  border-radius:4px;
  color:#7a5b17;
  font-size:0.95em;
}


/* ==========================================================================
   COOKIES
   ========================================================================== */

#cookie-banner{
  position:fixed;
  left:20px;
  right:20px;
  bottom:20px;
  z-index:200;

  max-width:560px;
  margin:0 auto;

  background:var(--asphalt-2);
  color:#f2efe6;

  padding:20px 22px;

  border-radius:12px;

  display:none;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.35);

  border:1px solid var(--asphalt-line);

  gap:14px;
  flex-direction:column;
}

#cookie-banner p{
  margin:0;
  font-size:14px;
  color:#d8d3c6;
}

#cookie-banner a{
  color:var(--marker);
}

.cookie-actions{
  display:flex;
  gap:10px;
}

.cookie-actions button{
  font-family:inherit;
  font-size:13.5px;
  font-weight:600;

  padding:9px 16px;

  border-radius:6px;
  border:none;

  cursor:pointer;
}

.cookie-accept{
  background:var(--marker);
  color:var(--marker-ink);
}

.cookie-reject{
  background:transparent;
  color:#d8d3c6;
  border:1px solid #4a5450 !important;
}


/* ==========================================================================
   RESPONSIVE GENERAL
   ========================================================================== */

@media (max-width:640px){

  .hero{
    padding:56px 0 80px;
  }

  .calc-card{
    padding:22px;
    margin-top:32px;
  }

  .calc-card-head{
    align-items:flex-start;
    flex-direction:column;
  }

  section{
    padding:56px 0;
  }

  table.consumo{
    font-size:13px;
  }

  table.consumo th,
  table.consumo td{
    padding:11px 10px;
    font-size:13px;
  }

  .result-total .price{
    font-size:36px;
  }

}
/* =========================================================
   PÁGINAS SEO
   ========================================================= */

.seo-content {
  display: grid;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.seo-block {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.seo-block h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.seo-block p {
  color: var(--ink-dim);
  line-height: 1.7;
}

.seo-block ul {
  color: var(--ink-dim);
  line-height: 1.8;
  padding-left: 22px;
}

.formula {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  line-height: 1.6;
}

.example-calculation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.example-calculation > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.example-calculation span {
  color: var(--ink-dim);
  font-size: 13px;
}

.example-calculation strong {
  font-size: 18px;
}

.distance-table {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.distance-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.distance-row:last-child {
  border-bottom: 0;
}

.distance-header {
  font-weight: 700;
  background: var(--surface);
}

.distance-row span,
.distance-row strong {
  display: flex;
  align-items: center;
}

.seo-note {
  font-size: 14px;
}

.seo-button {
  display: inline-block;
  margin-top: 10px;
  padding: 13px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  background: var(--ink);
  color: var(--bg);
}

.seo-button:hover {
  opacity: .9;
}

@media (max-width: 700px) {

  .example-calculation {
    grid-template-columns: 1fr;
  }

  .distance-row {
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 14px;
  }

  .seo-block {
    padding: 22px;
  }

}
/* ================================
   HERO
================================ */

.hero {
    background: #1c232b;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
    box-sizing: border-box;
}

.eyebrow {
    color: #d9ad55;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero h1 {
    color: #f5f2eb;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.08;
    max-width: 750px;
    margin-bottom: 24px;
}

.hero-text {
    color: #d0d5d9;
    font-size: 18px;
    line-height: 1.7;
    max-width: 760px;
    margin-bottom: 30px;
}


/* ================================
   BOTONES
================================ */

.btn {
    display: inline-block;
    background: #d9ad55;
    color: #1c232b;
    padding: 17px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    background: #e5bc6b;
    transform: translateY(-2px);
}

/* =========================================
   HEADER UNIFICADO RUTACOSTE (una sola definición para todas las páginas)
========================================= */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: 76px;
    background: #222b35;
    border-bottom: 1px solid #394451;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 0 48px;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

.logo {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    color: #f5f2eb;
    text-decoration: none;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.4px;
    white-space: nowrap;
}

.logo span { color: #d9ad55; }

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
}

nav a {
    position: relative;
    padding: 6px 0;
    color: #b8c0c8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

nav a:hover,
nav a[aria-current="page"] { color: #d9ad55; }

nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: #d9ad55;
}

nav a:focus-visible,
.logo:focus-visible {
    outline: 2px solid #d9ad55;
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    header {
        position: static;
        padding: 18px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px 20px;
    }
}

@media (max-width: 600px) {
    header { padding: 16px 20px; }
    .logo { font-size: 21px; }
    nav a { font-size: 13px; }
}

/* =========================================
   ENLACES RELACIONADOS (internal linking)
========================================= */
.related-section{ padding:64px 0; }
.related-section .eyebrow{ color:#b8862e; }
.related-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:14px;
  margin-top:8px;
}
.related-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:18px 20px;
  border-radius:12px;
  background:#ffffff;
  border:1px solid #dbd8cb;
  text-decoration:none;
  transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.related-card:hover{
  border-color:#d9ad55;
  transform:translateY(-2px);
  box-shadow:0 10px 24px -14px rgba(28,35,43,0.35);
}
.related-card b{
  font-family:'Space Grotesk',sans-serif;
  font-size:15.5px;
  color:#171c1a;
}
.related-card span{
  font-size:13.5px;
  color:#5c655f;
}
