/* =========================================================
   JMA TRANSPORTES — Design tokens
   ========================================================= */
:root{
  --red:        #BF272E;
  --red-dark:   #9D161B;
  --black:      #1A1919;
  --white:      #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-mid:   #E2E0DE;
  --gray-text:  #55524F;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  --container: 1180px;
  --radius: 6px;
  --shadow: 0 12px 30px rgba(26,25,25,.10);
  --shadow-strong: 0 20px 45px rgba(26,25,25,.18);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight:800;
  line-height:1.02;
  margin:0;
  letter-spacing:.2px;
}
p{ margin:0; }
section{ position:relative; }
.container{
  width:100%;
  max-width: var(--container);
  margin:0 auto;
  padding:0 24px;
}
.eyebrow{
  font-family: var(--font-display);
  font-weight:700;
  font-size:14px;
  letter-spacing:3px;
  text-transform:uppercase;
  color: var(--red);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:26px; height:3px;
  background: var(--red);
  display:inline-block;
}
.section-head{
  max-width:680px;
  margin-bottom:48px;
}
.section-head h2{
  font-size:clamp(32px,4.4vw,48px);
  margin-top:10px;
  color: var(--black);
}
.section-head p{
  margin-top:16px;
  font-size:17px;
  line-height:1.6;
  color: var(--gray-text);
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center .eyebrow{ justify-content:center; }
.section-head.center .eyebrow::before{ display:none; }

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-display);
  font-weight:700;
  font-size:17px;
  letter-spacing:.4px;
  text-transform:uppercase;
  padding:15px 28px;
  border-radius:4px;
  border:2px solid transparent;
  cursor:pointer;
  transition:.22s ease;
  white-space:nowrap;
}
.btn-primary{
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(191,39,46,.32);
}
.btn-primary:hover{ background: var(--red-dark); transform:translateY(-2px); box-shadow:0 14px 28px rgba(157,22,27,.38); }
.btn-outline{
  background:transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn-outline:hover{ background: var(--black); color:var(--white); transform:translateY(-2px); }
.btn-outline.on-dark{ border-color: rgba(255,255,255,.5); color:var(--white); }
.btn-outline.on-dark:hover{ background: var(--white); color:var(--black); }
.btn svg{ width:19px; height:19px; flex-shrink:0; }
.btn-block{ width:100%; justify-content:center; }

/* =========================================================
   TOP BAR (franja de confianza)
   ========================================================= */
.top-bar{
  background: var(--black);
  border-bottom:1px solid rgba(255,255,255,.08);
  padding:9px 0;
}
.top-bar .container{
  display:flex; align-items:center; justify-content:center; gap:34px; flex-wrap:wrap;
}
.top-bar span{
  display:flex; align-items:center; gap:7px;
  font-family:var(--font-display); font-weight:600; font-size:12.5px;
  letter-spacing:.6px; text-transform:uppercase; color:#D7D4D2;
}
.top-bar svg{ width:14px; height:14px; color:var(--red); flex-shrink:0; }
@media (max-width:760px){
  .top-bar{ overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none; }
  .top-bar::-webkit-scrollbar{ display:none; }
  .top-bar .container{ justify-content:flex-start; flex-wrap:nowrap; gap:20px; }
  .top-bar span{ white-space:nowrap; font-size:11px; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:fixed; top:34px; left:0; right:0;
  z-index:700;
  background: rgba(255,255,255,0);
  padding:18px 0;
  transition:.28s ease;
}
.site-header.scrolled{
  top:0;
  background: rgba(255,255,255,.98);
  box-shadow: 0 4px 20px rgba(26,25,25,.08);
  padding:10px 0;
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:54px; width:54px; border-radius:50%; transition:.28s ease; box-shadow:0 0 0 3px rgba(255,255,255,.15); }
.site-header.scrolled .brand img{ height:44px; width:44px; box-shadow:none; }
.brand-text{ font-family:var(--font-display); line-height:1; }
.brand-text b{ display:block; font-size:20px; font-weight:800; color:var(--white); transition:.28s ease; }
.brand-text span{ display:block; font-size:11px; letter-spacing:2px; color:#FF8A8E; font-weight:700; transition:.28s ease; }
.site-header.scrolled .brand-text b{ color:var(--black); }
.site-header.scrolled .brand-text span{ color:var(--red); }

.main-nav{ display:flex; align-items:center; gap:34px; }
.main-nav a{
  font-family: var(--font-display);
  font-weight:600;
  font-size:16px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--white);
  position:relative;
  padding:4px 0;
  transition:.25s ease;
}
.site-header.scrolled .main-nav a{ color:var(--black); }
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background:var(--red); transition:.2s ease;
}
.main-nav a:hover::after{ width:100%; }
.main-nav a:hover{ color:#FF8A8E; }
.site-header.scrolled .main-nav a:hover{ color:var(--red); }

.header-cta{ display:flex; align-items:center; gap:16px; }

/* =========================================================
   MENÚ MÓVIL — funciona sin JavaScript (checkbox + labels)
   ========================================================= */
.nav-check{
  position:absolute; opacity:0; width:0; height:0; pointer-events:none; margin:0;
}

.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px;
  position:relative; z-index:20; margin:0;
}
.nav-toggle span{ width:26px; height:3px; background:var(--white); border-radius:2px; transition:.25s ease; }
.site-header.scrolled .nav-toggle span{ background:var(--black); }

/* Botón X dentro del panel del menú */
.nav-close{
  display:none;
  position:absolute; top:20px; right:22px;
  width:46px; height:46px; border-radius:50%;
  border:1.5px solid var(--gray-mid); background:var(--white);
  cursor:pointer; padding:0; margin:0;
  align-items:center; justify-content:center;
}
.nav-close span{
  position:absolute; width:19px; height:2.5px; background:var(--black); border-radius:2px;
}
.nav-close span:nth-child(1){ transform:rotate(45deg); }
.nav-close span:nth-child(2){ transform:rotate(-45deg); }

/* Fondo oscuro detrás del menú abierto */
.nav-backdrop{
  display:none;
  position:fixed; inset:0; background:rgba(26,25,25,.55);
  z-index:9998; cursor:pointer; margin:0;
}

.main-nav.open a{ color:var(--black); }

@media (max-width:760px){
  .site-header .container{ gap:10px; }
  .header-cta .btn{ padding:10px 16px; font-size:13px; gap:6px; }
  .header-cta .btn svg{ width:15px; height:15px; }
}
@media (max-width:420px){
  .brand-text{ display:none; }
  .brand img{ height:42px; width:42px; }
  .header-cta .btn{ padding:9px 12px; font-size:12px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  padding:212px 0 100px;
  background: var(--black);
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(1000px 600px at 82% 15%, rgba(191,39,46,.30), transparent 60%),
    linear-gradient(180deg, #1A1919 0%, #201f1f 100%);
}
.hero .container{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:50px;
  align-items:center;
}
.hero-eyebrow{
  font-family:var(--font-display); font-weight:700; font-size:14px; letter-spacing:3px;
  text-transform:uppercase; color:#FF8A8E;
  display:flex; align-items:center; gap:10px; margin-bottom:22px;
}
.hero-eyebrow::before{ content:""; width:26px; height:3px; background:var(--red); }
.hero h1{
  color:var(--white);
  font-size:clamp(40px,5.6vw,68px);
  letter-spacing:.2px;
}
.hero h1 em{
  font-style:normal;
  color:var(--red);
  position:relative;
}
.hero p.lead{
  color:#D7D4D2;
  font-size:18px;
  line-height:1.65;
  max-width:520px;
  margin:22px 0 34px;
}
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:44px; }
.hero-stats{
  display:flex; gap:0; border-top:1px solid rgba(255,255,255,.14); padding-top:26px; max-width:560px;
}
.hero-stats div{ flex:1; padding-right:20px; }
.hero-stats b{
  display:block; font-family:var(--font-display); font-size:28px; color:var(--white); font-weight:800;
}
.hero-stats span{ display:block; font-size:13px; color:#B9B6B3; margin-top:4px; line-height:1.35; }

/* Hero signature graphic: national route network */
.hero-visual{ position:relative; }
.route-card{
  position:relative;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:26px 22px 22px;
  backdrop-filter: blur(2px);
}
.route-card-top{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:14px;
}
.route-card-top span{
  font-family:var(--font-display); text-transform:uppercase; letter-spacing:2px;
  font-size:12px; color:#B9B6B3; font-weight:700;
}
.live-dot{
  display:inline-flex; align-items:center; gap:7px;
  font-family:var(--font-display); font-size:12px; letter-spacing:1.5px; text-transform:uppercase;
  color:#8EF0A6; font-weight:700;
}
.live-dot i{
  width:8px; height:8px; border-radius:50%; background:#3ED66B;
  box-shadow:0 0 0 0 rgba(62,214,107,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(62,214,107,.55); }
  70%{ box-shadow:0 0 0 9px rgba(62,214,107,0); }
  100%{ box-shadow:0 0 0 0 rgba(62,214,107,0); }
}
.route-svg{ width:100%; height:auto; }
.route-svg .path{
  fill:none; stroke:var(--red); stroke-width:2.4; stroke-linecap:round;
  stroke-dasharray:7 7;
  animation: dash 2.6s linear infinite;
}
.route-svg .path.alt{ stroke:#8A8783; opacity:.55; }
.route-svg .node circle{ fill:var(--black); stroke:var(--white); stroke-width:2; }
.route-svg .node.hub circle{ fill:var(--red); stroke:#fff; }
.route-svg .node text{
  font-family:var(--font-display); font-weight:700; font-size:11.5px; fill:#EDEBE9; letter-spacing:.3px;
}
@keyframes dash{ to{ stroke-dashoffset:-140; } }

.route-legend{ display:flex; gap:18px; margin-top:16px; flex-wrap:wrap; }
.route-legend span{
  font-size:12.5px; color:#B9B6B3; display:flex; align-items:center; gap:7px;
}
.route-legend i{ width:9px; height:9px; border-radius:50%; display:inline-block; }
.route-legend i.hub{ background:var(--red); }
.route-legend i.city{ background:#8A8783; }

/* =========================================================
   MARQUEE / trust strip
   ========================================================= */
.trust-strip{
  background: var(--gray-light);
  padding:20px 0;
  border-bottom:1px solid var(--gray-mid);
}
.trust-strip .container{
  display:flex; align-items:center; justify-content:center; gap:46px; flex-wrap:wrap;
}
.trust-item{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-display); font-weight:700; font-size:14.5px; letter-spacing:.3px;
  text-transform:uppercase; color:var(--black);
}
.trust-item svg{ width:20px; height:20px; color:var(--red); flex-shrink:0; }

/* =========================================================
   SERVICES
   ========================================================= */
.services{ padding:110px 0 90px; background:var(--white); }
.services-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:26px;
}
.service-card{
  border:1px solid var(--gray-mid);
  border-radius:12px;
  padding:34px 30px;
  background:var(--white);
  transition:.25s ease;
  position:relative;
  overflow:hidden;
}
.service-card::before{
  content:"";
  position:absolute; left:0; top:0; bottom:0; width:4px;
  background:var(--red); transform:scaleY(0); transform-origin:top; transition:.25s ease;
}
.service-card:hover{ box-shadow:var(--shadow-strong); transform:translateY(-4px); border-color:transparent; }
.service-card:hover::before{ transform:scaleY(1); }
.service-icon{
  width:54px; height:54px; border-radius:10px;
  background: var(--gray-light);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
  transition:.25s ease;
}
.service-card:hover .service-icon{ background:var(--red); }
.service-icon svg{ width:27px; height:27px; color:var(--red); transition:.25s ease; }
.service-card:hover .service-icon svg{ color:var(--white); }
.service-card h3{ font-size:26px; margin-bottom:10px; }
.service-card > p{ color:var(--gray-text); font-size:15.5px; line-height:1.6; margin-bottom:18px; }
.service-list{ margin-bottom:22px; }
.service-list li{
  display:flex; align-items:flex-start; gap:9px;
  font-size:14.5px; color:var(--black); padding:5px 0;
}
.service-list li svg{ width:16px; height:16px; color:var(--red); flex-shrink:0; margin-top:2px; }
.service-card .btn{ padding:11px 20px; font-size:14px; }

/* =========================================================
   PROCESO (Cómo funciona)
   ========================================================= */
.process{ padding:100px 0; background:var(--gray-light); }
.process-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:26px; counter-reset:step;
}
.process-step{
  background:var(--white); border-radius:12px; padding:36px 30px;
  border:1px solid var(--gray-mid); position:relative;
}
.process-step .num{
  font-family:var(--font-display); font-weight:900; font-size:54px;
  color:var(--red); opacity:.16; line-height:1; margin-bottom:6px;
}
.process-step h3{ font-size:23px; margin-bottom:10px; }
.process-step p{ color:var(--gray-text); font-size:15px; line-height:1.6; }
.process-arrow{
  position:absolute; top:50%; right:-24px; transform:translateY(-50%);
  width:26px; height:26px; color:var(--red);
}
@media (max-width:980px){
  .process-grid{ grid-template-columns:1fr; }
  .process-arrow{ display:none; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq{ padding:100px 0; background:var(--white); }
.faq-list{ max-width:820px; margin:0 auto; }
.faq-item{
  border-bottom:1px solid var(--gray-mid);
}
.faq-item summary{
  list-style:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:24px 4px;
  font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--black);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .plus{
  width:30px; height:30px; border-radius:50%; border:1.5px solid var(--gray-mid);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; position:relative; transition:.25s ease;
}
.faq-item summary .plus::before, .faq-item summary .plus::after{
  content:""; position:absolute; background:var(--black); transition:.25s ease;
}
.faq-item summary .plus::before{ width:12px; height:2px; }
.faq-item summary .plus::after{ width:2px; height:12px; }
.faq-item[open] summary .plus{ background:var(--red); border-color:var(--red); }
.faq-item[open] summary .plus::before, .faq-item[open] summary .plus::after{ background:var(--white); }
.faq-item[open] summary .plus::after{ transform:scaleY(0); }
.faq-item p.answer{
  color:var(--gray-text); font-size:15.5px; line-height:1.65; padding:0 40px 24px 4px;
}

/* =========================================================
   INNER PAGE HERO (Servicios, Nosotros, Blog)
   ========================================================= */
.inner-hero{
  position:relative;
  background: var(--black);
  padding:168px 0 74px;
  overflow:hidden;
}
.inner-hero::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(900px 500px at 85% 0%, rgba(191,39,46,.30), transparent 60%);
}
.inner-hero .container{ position:relative; z-index:2; }
.breadcrumb{
  display:flex; align-items:center; gap:8px; margin-bottom:18px;
  font-family:var(--font-display); font-weight:600; font-size:13px; letter-spacing:.5px; text-transform:uppercase;
  color:#B9B6B3;
}
.breadcrumb a{ color:#B9B6B3; transition:.2s; }
.breadcrumb a:hover{ color:var(--white); }
.breadcrumb span{ color:#FF8A8E; }
.inner-hero h1{
  color:var(--white);
  font-size:clamp(36px,5vw,58px);
  max-width:760px;
}
.inner-hero p.lead{
  color:#D7D4D2; font-size:17px; line-height:1.6; max-width:600px; margin-top:16px;
}

/* =========================================================
   SERVICE DETAIL SECTIONS (servicios.html)
   ========================================================= */
.service-detail{ padding:80px 0; border-bottom:1px solid var(--gray-mid); }
.service-detail:nth-child(even){ background:var(--gray-light); }
.service-detail-wrap{
  display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:center;
}
.service-detail.reverse .service-detail-wrap{ direction:rtl; }
.service-detail.reverse .service-detail-wrap > *{ direction:ltr; }
.service-detail-icon{
  width:74px; height:74px; border-radius:14px; background:var(--black);
  display:flex; align-items:center; justify-content:center; margin-bottom:24px;
}
.service-detail-icon svg{ width:36px; height:36px; color:var(--red); }
.service-detail h2{ font-size:clamp(28px,3.4vw,40px); margin-bottom:16px; }
.service-detail p.desc{ color:var(--gray-text); font-size:16.5px; line-height:1.7; margin-bottom:24px; }
.service-detail-panel{
  background:var(--black); border-radius:16px; padding:40px 34px;
}
.service-detail-panel ul{ display:flex; flex-direction:column; gap:16px; margin-bottom:28px; }
.service-detail-panel li{
  display:flex; align-items:flex-start; gap:12px; color:#EDEBE9; font-size:15px; line-height:1.5;
}
.service-detail-panel li svg{ width:20px; height:20px; color:var(--red); flex-shrink:0; margin-top:1px; }
.service-detail-panel .tag{
  display:inline-block; font-family:var(--font-display); font-size:12px; letter-spacing:2px;
  text-transform:uppercase; color:#FF8A8E; font-weight:700; margin-bottom:16px;
}
@media (max-width:860px){
  .service-detail{ padding:56px 0; }
  .service-detail-wrap{ grid-template-columns:1fr; gap:32px; }
  .service-detail.reverse .service-detail-wrap{ direction:ltr; }
  .service-detail.reverse .service-detail-wrap > div:first-child{ order:2; }
  .service-detail-panel{ padding:28px 24px; }
  .service-detail-wrap > *{ min-width:0; }
  .service-detail p.desc{ margin-bottom:28px; }
  .service-detail .btn{
    white-space:normal; text-align:center; width:100%;
    justify-content:center; line-height:1.25; font-size:15px; padding:15px 18px;
  }
  .service-detail-icon{ width:62px; height:62px; margin-bottom:18px; }
  .service-detail-icon svg{ width:30px; height:30px; }
}

/* =========================================================
   NOSOTROS PAGE
   ========================================================= */
.about-block{ padding:100px 0; }
.about-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.about-wrap p{ color:var(--gray-text); font-size:16.5px; line-height:1.75; margin-bottom:16px; }
.value-card{
  background:var(--gray-light); border-radius:12px; padding:30px 26px; border:1px solid var(--gray-mid);
}
.value-card svg{ width:28px; height:28px; color:var(--red); margin-bottom:16px; }
.value-card h4{ font-size:19px; margin-bottom:8px; }
.value-card p{ color:var(--gray-text); font-size:14.5px; line-height:1.6; }
.values-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:980px){
  .about-wrap{ grid-template-columns:1fr; }
  .values-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){ .values-grid{ grid-template-columns:1fr; } }

/* =========================================================
   BLOG
   ========================================================= */
.blog-section{ padding:90px 0 110px; background:var(--white); }
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.blog-card{
  border:1px solid var(--gray-mid); border-radius:12px; overflow:hidden; transition:.25s ease; display:flex; flex-direction:column;
}
.blog-card:hover{ box-shadow:var(--shadow-strong); transform:translateY(-4px); }
.blog-card-thumb{
  height:150px; background: linear-gradient(135deg, var(--black), #2A2727);
  display:flex; align-items:center; justify-content:center; position:relative;
}
.blog-card-thumb svg{ width:42px; height:42px; color:var(--red); }
.blog-card-thumb::after{
  content:""; position:absolute; inset:0; background:radial-gradient(circle at 80% 20%, rgba(191,39,46,.35), transparent 60%);
}
.blog-card-body{ padding:26px 24px 28px; display:flex; flex-direction:column; flex:1; }
.blog-card-cat{
  font-family:var(--font-display); font-weight:700; font-size:12px; letter-spacing:1.5px;
  text-transform:uppercase; color:var(--red); margin-bottom:10px;
}
.blog-card h3{ font-size:22px; margin-bottom:10px; line-height:1.15; }
.blog-card p{ color:var(--gray-text); font-size:14.5px; line-height:1.6; margin-bottom:20px; flex:1; }
.blog-card .read-more{
  font-family:var(--font-display); font-weight:700; font-size:14px; letter-spacing:.4px; text-transform:uppercase;
  color:var(--black); display:inline-flex; align-items:center; gap:6px;
}
.blog-card .read-more svg{ width:16px; height:16px; transition:.2s ease; }
.blog-card:hover .read-more svg{ transform:translateX(4px); }
@media (max-width:980px){ .blog-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .blog-grid{ grid-template-columns:1fr; } }

/* =========================================================
   ARTICLE (blog post)
   ========================================================= */
.article{ padding:70px 0 100px; }
.article-body{ max-width:760px; margin:0 auto; }
.article-meta{
  display:flex; align-items:center; gap:14px; margin-bottom:20px;
  font-family:var(--font-display); font-weight:600; font-size:13px; letter-spacing:.4px; text-transform:uppercase; color:var(--red);
}
.article-body h2{ font-size:clamp(24px,3vw,30px); margin:40px 0 16px; }
.article-body p{ color:var(--gray-text); font-size:16.5px; line-height:1.8; margin-bottom:18px; }
.article-body ul{ margin:0 0 22px; padding-left:22px; list-style:disc; }
.article-body ul li{ color:var(--gray-text); font-size:16px; line-height:1.7; margin-bottom:8px; }
.article-cta{
  margin-top:50px; background:var(--black); border-radius:16px; padding:38px; text-align:center;
}
.article-cta h3{ color:var(--white); font-size:26px; margin-bottom:10px; }
.article-cta p{ color:#C9C6C3; margin-bottom:24px; }

/* =========================================================
   WHY US
   ========================================================= */
.why{ background:var(--black); padding:100px 0; position:relative; overflow:hidden; }
.why::after{
  content:""; position:absolute; right:-120px; top:-120px; width:420px; height:420px;
  border-radius:50%; background:radial-gradient(circle, rgba(191,39,46,.28), transparent 70%);
}
.why .section-head h2, .why .section-head p{ color:var(--white); }
.why .section-head p{ color:#C9C6C3; }
.why-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background: rgba(255,255,255,.12);
  border-radius:14px; overflow:hidden;
  position:relative; z-index:2;
}
.why-item{
  background:#211F1F; padding:34px 26px; transition:.25s ease;
}
.why-item:hover{ background:#2A2727; }
.why-item svg{ width:30px; height:30px; color:var(--red); margin-bottom:18px; }
.why-item h4{ color:var(--white); font-size:21px; margin-bottom:8px; }
.why-item p{ color:#B9B6B3; font-size:14.5px; line-height:1.55; }

/* =========================================================
   COVERAGE
   ========================================================= */
.coverage{ padding:110px 0; background:var(--gray-light); }
.coverage-wrap{
  display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;
}
.coverage-map{
  background:var(--white); border-radius:16px; padding:20px; box-shadow:var(--shadow);
}
.coverage-cities{ margin-top:28px; }
.coverage-cities li{
  display:flex; align-items:center; gap:12px;
  padding:13px 0; border-bottom:1px solid var(--gray-mid);
  font-family:var(--font-display); font-weight:700; font-size:18px;
}
.coverage-cities li:last-child{ border-bottom:0; }
.coverage-cities li span.tag{
  margin-left:auto;
  font-family:var(--font-body); font-weight:600; font-size:12.5px;
  text-transform:uppercase; letter-spacing:.5px; color:var(--red);
  background:rgba(191,39,46,.08); padding:5px 10px; border-radius:20px;
}
.coverage-cities li svg{ width:20px; height:20px; color:var(--red); }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner{
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  padding:64px 0;
}
.cta-banner .container{
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-banner h3{ color:var(--white); font-size:clamp(26px,3.4vw,38px); max-width:560px; }
.cta-banner p{ color:rgba(255,255,255,.85); margin-top:8px; font-size:15.5px; }
.cta-banner .btn-primary{ background:var(--black); box-shadow:none; }
.cta-banner .btn-primary:hover{ background:#000; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact{ padding:110px 0; background:var(--white); }
.contact-wrap{
  display:grid; grid-template-columns:.95fr 1.05fr; gap:60px;
}
.contact-info-list{ margin-top:30px; display:flex; flex-direction:column; gap:22px; }
.contact-info-item{ display:flex; gap:16px; align-items:flex-start; }
.contact-info-item .ic{
  width:46px; height:46px; border-radius:10px; background:var(--gray-light);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-info-item .ic svg{ width:22px; height:22px; color:var(--red); }
.contact-info-item h4{ font-size:16px; font-family:var(--font-display); font-weight:700; margin-bottom:4px; }
.contact-info-item p{ font-size:15px; color:var(--gray-text); line-height:1.5; }
.contact-info-item p a{ color:var(--black); font-weight:600; }
.social-row{ display:flex; gap:12px; margin-top:30px; }
.social-row a{
  width:42px; height:42px; border-radius:50%; border:1.5px solid var(--gray-mid);
  display:flex; align-items:center; justify-content:center; transition:.2s ease;
}
.social-row a:hover{ background:var(--red); border-color:var(--red); }
.social-row a svg{ width:19px; height:19px; color:var(--black); transition:.2s; }
.social-row a:hover svg{ color:var(--white); }

.quote-form{
  background:var(--gray-light); border-radius:16px; padding:38px; border:1px solid var(--gray-mid);
}
.quote-form h3{ font-size:26px; margin-bottom:6px; }
.quote-form > p{ color:var(--gray-text); font-size:14.5px; margin-bottom:24px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.form-group{ display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.form-group label{ font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.4px; color:var(--black); }
.form-group input, .form-group select, .form-group textarea{
  border:1.5px solid var(--gray-mid); border-radius:6px; padding:13px 14px;
  font-family:var(--font-body); font-size:15px; background:var(--white);
  transition:.2s ease; color:var(--black);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  outline:none; border-color:var(--red); box-shadow:0 0 0 3px rgba(191,39,46,.12);
}
.form-group textarea{ resize:vertical; min-height:96px; }
.form-note{ font-size:12.5px; color:#8A8783; margin-top:14px; text-align:center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background:var(--black); padding:60px 0 24px; }
.footer-top{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:50px;
  padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand img{ height:50px; width:50px; border-radius:50%; }
.footer-brand b{ font-family:var(--font-display); font-size:20px; color:var(--white); }
.site-footer p{ color:#B9B6B3; font-size:14.5px; line-height:1.6; max-width:340px; }
.footer-col h5{
  font-family:var(--font-display); color:var(--white); text-transform:uppercase;
  letter-spacing:1.5px; font-size:14px; margin-bottom:18px;
}
.footer-col ul li{ margin-bottom:11px; }
.footer-col ul li a{ color:#B9B6B3; font-size:14.5px; transition:.2s; }
.footer-col ul li a:hover{ color:var(--red); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; padding-top:22px; flex-wrap:wrap; gap:12px;
}
.footer-bottom p{ color:#7A7775; font-size:13px; }
.footer-bottom .legal{ display:flex; gap:18px; flex-wrap:wrap; padding-right:100px; }
.footer-bottom .legal a{ color:#7A7775; font-size:13px; }
.footer-bottom .legal a:hover{ color:var(--white); }

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.wa-float{
  position:fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index:600;
  width:60px; height:60px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(0,0,0,.28);
  animation: floatPulse 2.4s infinite;
}
.wa-float svg{ width:30px; height:30px; color:#fff; }
@keyframes floatPulse{
  0%{ box-shadow:0 10px 24px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,.5); }
  70%{ box-shadow:0 10px 24px rgba(0,0,0,.28), 0 0 0 14px rgba(37,211,102,0); }
  100%{ box-shadow:0 10px 24px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,0); }
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .hero .container{ grid-template-columns:1fr; }
  .hero{ padding:188px 0 70px; }
  .coverage-wrap{ grid-template-columns:1fr; }
  .contact-wrap{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr 1fr; row-gap:34px; }
  .why-grid{ grid-template-columns:repeat(2,1fr); }
  .services-grid{ grid-template-columns:1fr; }
}
@media (max-width: 760px){
  .main-nav, .header-phone{ display:none; }
  .nav-toggle{ display:flex; }
  .main-nav.open, .nav-check:checked ~ .main-nav{
    display:flex; position:fixed; inset:0 0 0 auto; width:78%; max-width:320px; height:100vh;
    background:var(--white); flex-direction:column; padding:110px 34px; gap:26px;
    box-shadow:-10px 0 30px rgba(0,0,0,.15);
    z-index:9999; overflow-y:auto;
  }
  .main-nav.open a, .nav-check:checked ~ .main-nav a{ font-size:19px; padding:6px 0; color:var(--black); }

  /* Al marcar el checkbox: aparece la X y el fondo oscuro, se oculta la hamburguesa */
  .nav-check:checked ~ .main-nav .nav-close{ display:flex; }
  .nav-check:checked ~ .nav-backdrop{ display:block; }
  .nav-check:checked ~ .nav-toggle{ visibility:hidden; }
  .trust-strip .container{ gap:22px; }

  /* Hero: menos espacio muerto arriba y CTAs consistentes */
  .hero{ padding:140px 0 64px; }
  .hero p.lead{ font-size:16.5px; margin:18px 0 28px; }
  .hero-ctas{ flex-direction:column; align-items:stretch; gap:12px; margin-bottom:36px; }
  .hero-ctas .btn{ width:100%; justify-content:center; }
  .hero-stats{ display:grid; grid-template-columns:1fr 1fr; gap:18px 14px; padding-top:22px; }
  .hero-stats div{ padding-right:0; }
  .hero-stats b{ font-size:22px; }
  .hero-stats span{ font-size:12px; }
  .route-card{ padding:20px 16px 18px; }
  .route-svg .node text{ font-size:13px; }

  /* Botones que no caben en una línea */
  .btn{ white-space:normal; line-height:1.25; }
  .cta-banner .btn, .article-cta .btn{ width:100%; justify-content:center; text-align:center; }

  .footer-top{ grid-template-columns:1fr; row-gap:0; padding-bottom:26px; }
  .site-footer{ padding:48px 0 20px; }
  .site-footer .footer-top > div{
    padding:22px 0; border-bottom:1px solid rgba(255,255,255,.09);
  }
  .site-footer .footer-top > div:first-child{ padding-top:0; }
  .site-footer .footer-top > div:last-child{ border-bottom:0; padding-bottom:0; }
  .site-footer p{ max-width:100%; }
  .footer-col h5{ margin-bottom:14px; }
  .footer-col ul li{ margin-bottom:9px; }
  .footer-bottom{
    flex-direction:column; align-items:flex-start; gap:10px;
    padding-top:20px; padding-bottom:74px;   /* espacio para el botón de WhatsApp */
  }
  .footer-bottom .legal{ padding-right:0; }
  .footer-bottom p{ font-size:12.5px; line-height:1.5; }
  .why-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .cta-banner .container{ text-align:center; justify-content:center; }
  .cta-banner{ padding:48px 0; }
  .quote-form{ padding:28px 22px; }
  .coverage-map{ padding:10px; }
  .coverage-map iframe{ height:280px !important; }
  .service-card{ padding:28px 22px; }
  .article-cta{ padding:30px 22px; }
  .inner-hero{ padding:132px 0 56px; }

  /* Secciones: menos padding vertical para no alargar el scroll */
  .services{ padding:72px 0 60px; }
  .process, .why, .faq{ padding:70px 0; }
  .coverage, .contact{ padding:70px 0; }
  .section-head{ margin-bottom:34px; }

  /* Botón flotante un poco más pequeño para tapar menos contenido */
  .wa-float{ width:54px; height:54px; }
  .wa-float svg{ width:27px; height:27px; }
}
