

.topbar{
  height:34px;
  display:flex;
  align-items:center;
  border-bottom:1px solid rgba(15,23,42,.06);
  background: rgba(255,255,255,.65);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.topbar-right{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px;
  font-weight:800;
}
.topbar-right a{
  color:var(--text);
  text-decoration:none;
  opacity:.9;
}
.topbar-right a:hover{ text-decoration:underline; }
.topbar-sep{ opacity:.5; }
.topbar-cta{
  padding:6px 10px;
  border-radius:999px;
  background: rgba(15,23,42,.06);
}
:root{
  --bg: #faf7f5;
  --card: #ffffff;
  --text: #121212;
  --muted:#5a5a5a;
  --border:#e9e3df;
  --shadow: 0 12px 30px rgba(0,0,0,.08);
  --red:#d8262a;
  --redDark:#b81f22;
  --black:#111111;
  --pill:#1a1a1a;
  --radius: 18px;
  --radiusSm: 14px;
  --max: 1100px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

/* anchor offset so headings aren't hidden behind sticky header */
:root{ --header-h: 64px; }
main.hero, section.section, footer.footer{ scroll-margin-top: calc(var(--header-h) + 10px); }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.35;
}
a{color:inherit}
img{max-width:100%; display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 1000;
  transform: none !important;
  opacity: 1 !important;
  background: rgba(250,247,245,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition: none !important;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:0;
}
.brand{
  display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.5px;
}
.brand .logo{
  width:auto;
  height:64px;
  display:block;
  background:transparent;
  border:none;
  box-shadow:none;
}
/* Sprint 1: Evitar deformación del logo al subirlo desde Manager */
.brand img.logo{
  width:auto;
  height: 80px;
  max-width:none;
  object-fit:contain;
  background:transparent;
  border:none;
  box-shadow:none;
}
@media (max-width: 1024px){
  .brand img.logo{
    height: 80px;
  }
}
@media (max-width: 640px){
  .brand img.logo{
    height: 60px;
  }
}

.nav{
  display:flex; align-items:center; gap:16px;
}
.nav a{
  text-decoration:none;
  font-weight:600;
  color:#333;
  padding:10px 10px;
  border-radius:12px;
}
.nav a.active{
  background: rgba(216,38,42,.10);
  color: var(--redDark);
}
.nav a:hover{background:rgba(0,0,0,.05)}
.btn{
  appearance:none; border:none; cursor:pointer;
  border-radius:999px;
  padding:10px 14px;
  font-weight:800;
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active{transform: translateY(1px)}
.btn-primary{
  background:var(--red); color:#fff;
  box-shadow: 0 10px 22px rgba(216,38,42,.25);
}
.btn-primary:hover{background:var(--redDark)}
.btn-ghost{
  background:#fff; border:1px solid rgba(0,0,0,.08);
}
.btn-ghost:hover{background:rgba(0,0,0,.03)}
.hamburger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  background:#fff; border:1px solid rgba(0,0,0,.08);
}

/* Travel banner */
.travel-banner{
  border-radius: var(--radius);
  min-height: 220px;
  background: url('../imagenes/viajes.webp') center 10% / cover no-repeat;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
}
.travel-banner::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.10));
}
.travel-overlay{
  position:absolute;
  left:18px; right:18px; bottom:18px;
  z-index:1;
  color:#fff;
  font-weight:900;
  font-size: clamp(18px, 2.4vw, 32px);
  line-height:1.05;
  text-wrap: balance;
}
.travel-copy{ margin-top: 14px; }

/* FAQ tabs */
.faq-tabs{
  display:flex;
  gap:10px;
  margin: 10px 0 12px;
}
.faq-tabs .tab{
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
}
.faq-tabs .tab.active{
  background: rgba(216,38,42,.10);
  border-color: rgba(216,38,42,.25);
  color: var(--redDark);
}

/* Mobile nav drawer */
.drawer{
  display:none;
  padding:10px 0 16px;
}
.drawer a{
  display:block;
  padding:12px 12px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
}
.drawer a:hover{background:rgba(0,0,0,.05)}

/* Hero */
.hero{padding:18px 0 28px}
.hero-card{
  background: #fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  overflow:hidden;
  box-shadow: var(--shadow);
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  min-height: 300px;
}
.hero-media{
  position:relative;
  background:
    linear-gradient(120deg, rgba(0,0,0,.15), rgba(0,0,0,0)),
    url("assets/images/servicio_1.png");
  background-size:cover;
  background-position:center;
}
.hero-content{
  padding:22px 22px 22px;
  display:flex; flex-direction:column; justify-content:center;
}
.hero-title{
  font-size:44px; line-height:1.05; margin:0 0 8px; font-weight:900;
}
.hero-sub{
  margin:0 0 16px; color:var(--muted); font-weight:600;
}
.store-row{
  display:flex; flex-wrap:wrap; gap:10px; margin-top:8px;
}
.badge{
  border-radius:14px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.1);
  background:#111;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  display:inline-flex; gap:10px; align-items:center;
}
.badge small{opacity:.8; font-weight:700}
.lead{
  text-align:center;
  padding:22px 0 0;
}
.lead h2{margin:0; font-size:22px; font-weight:900}
.lead p{margin:6px 0 0; color:var(--muted); font-weight:650}
.center-actions{display:flex; justify-content:center; padding:14px 0 0}

/* Section headings */
.section{
  padding:28px 0;
}
.section h2{
  margin:0;
  font-size:30px;
  font-weight:950;
  text-align:center;
}
.section p.sub{
  margin:8px auto 0;
  text-align:center;
  max-width:720px;
  color:var(--muted);
  font-weight:650;
}

/* Services */
.cards{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.card{
  background:var(--card);
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.card .img{
  aspect-ratio: 16 / 10;
  background:#ddd;
  overflow:hidden;
}
.card .body{
  padding:12px 12px 14px;
}
.card .title{
  font-weight:900; margin:0 0 6px;
}
.card .desc{
  margin:0; color:var(--muted); font-weight:650; font-size:14px;
}

/* Dark banner */
.banner{
  background: #111;
  border-radius: 22px;
  overflow:hidden;
  color:#fff;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.08);
}
.banner .media{
  background: linear-gradient(120deg, rgba(0,0,0,.35), rgba(0,0,0,.0)),
              url("assets/images/servicio_2.png");
  background-size:cover; background-position:center;
  min-height: 260px;
}
.banner .content{padding:22px; display:flex; flex-direction:column; justify-content:center}
.banner h3{margin:0; font-size:32px; line-height:1.05; font-weight:950}
.banner p{margin:8px 0 14px; opacity:.9; font-weight:650}

/* Conduce */
.icon-row{
  margin-top:16px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding:14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.icon-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:10px;
}
.feature{
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.02);
  text-align:center;
}
.feature svg{width:34px; height:34px; margin:0 auto 8px; display:block}
.feature h4{margin:0 0 4px; font-size:14px; font-weight:900}
.feature p{margin:0; color:var(--muted); font-weight:650; font-size:12.5px}
.section-actions{display:flex; justify-content:center; margin-top:12px}

/* Safety */
.safety{
  background:#0e0e0e;
  color:#fff;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  box-shadow: var(--shadow);
  padding:22px 18px 18px;
}
.safety h2{color:#fff}
.safety-grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.safety-card{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  overflow:hidden;
}
.safety-card .ph{
  aspect-ratio: 16/9;
  background: linear-gradient(120deg, rgba(255,255,255,.14), rgba(255,255,255,0)),
              url("assets/images/servicio_3.png");
  background-size:cover; background-position:center;
}
.safety-card.driver .ph{
  background-image: linear-gradient(120deg, rgba(255,255,255,.14), rgba(255,255,255,0)),
                    url("assets/images/servicio_1.png");
}
.safety-card .body{padding:12px 12px 14px}
.safety-card .body h3{margin:0 0 6px; font-weight:950}
.safety-card .body p{margin:0; opacity:.9; font-weight:650}
.store-row.dark{justify-content:center; margin:14px 0 0}
.pills{
  margin-top:14px;
  display:flex; flex-wrap:wrap; gap:8px; justify-content:center;
}
.pill{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color:#fff;
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
}
.pill.accent{background: var(--red); border-color: rgba(255,255,255,.08)}

/* FAQ */
.faq{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.faq-head{
  padding:18px;
  border-bottom:1px solid rgba(0,0,0,.06);
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px;
}
.faq-head h2{margin:0; text-align:left}
.faq-head p{margin:0; color:var(--muted); font-weight:650}
.accordion{padding:10px 0}
.qa{
  border-top:1px solid rgba(0,0,0,.06);
}
.qa button{
  width:100%;
  padding:16px 18px;
  text-align:left;
  background:transparent;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:900;
  font-size:16px;
}
.qa button:hover{background:rgba(0,0,0,.03)}
.qa .ans{
  display:none;
  padding:0 18px 16px;
  color:var(--muted);
  font-weight:650;
}
.qa[aria-expanded="true"] .ans{display:block}
.iconPlus{
  width:34px; height:34px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  display:grid; place-items:center;
  font-weight:900;
}

/* Footer */
.footer{
  padding:26px 0 26px;
  border-top:1px solid rgba(0,0,0,.06);
  background: #f7f2ef;
}
.footer-top{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin-bottom:16px;
}
.footer-brand{display:flex; align-items:center; gap:10px; font-weight:950}
.cols{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.col h4{margin:0 0 8px; font-weight:950}
.col a{
  display:block;
  text-decoration:none;
  padding:6px 0;
  color:#333;
  font-weight:700;
}
.col a:hover{text-decoration:underline}
.footer-bottom{
  margin-top:14px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  color: #6b6b6b;
  font-weight:650;
  flex-wrap:wrap;
}

/* Modal (QR) */
.modal{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:2000;
}
.modal[aria-hidden="false"]{display:flex}
.modal-card{
  width:min(880px, 100%);
  background:#fff;
  border-radius:22px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow:hidden;
}
.modal-head{
  padding:16px 16px 10px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.modal-head h3{margin:0; font-weight:950}
.modal-head button{
  width:42px; max-height: calc(var(--header-h) - 20px); height: auto;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  cursor:pointer;
  font-weight:900;
}
.modal-body{
  padding:16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.qr-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:14px;
  display:flex; gap:14px; align-items:center;
  background: rgba(0,0,0,.02);
}
.qr-card img{width:120px; height:120px; border-radius:14px; border:1px solid rgba(0,0,0,.08); background:#fff}
.qr-card h4{margin:0; font-weight:950}
.qr-card p{margin:4px 0 0; color:var(--muted); font-weight:650}
.qr-actions{margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.storeLink{
  text-decoration:none;
  background:#111; color:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:900;
}
.storeLink:hover{opacity:.9}
.storeLink.light{background:#fff; color:#111; border:1px solid rgba(0,0,0,.12)}

/* Responsive */
@media (max-width: 980px){
  .hero-card{grid-template-columns: 1fr; }
  .hero-media{min-height: 240px}
  .hero-title{font-size:38px}
  .cards{grid-template-columns: repeat(2, 1fr)}
  .banner{grid-template-columns: 1fr}
  .banner .media{min-height: 220px}
  .icon-grid{grid-template-columns: repeat(3, 1fr)}
  .safety-grid{grid-template-columns: 1fr}
  .cols{grid-template-columns: repeat(2, 1fr)}
  .modal-body{grid-template-columns: 1fr}
}
@media (max-width: 680px){
  .topbar{display:none;}

  .nav{display:none}
  .hamburger{display:inline-grid; place-items:center}
  .drawer{display:block}
  .hero-title{font-size:34px}
  .cards{grid-template-columns: 1fr}
  .icon-grid{grid-template-columns: repeat(2, 1fr)}
  .footer-top{flex-direction:column; align-items:flex-start}
}


/* --- Internal manager branding support --- */
.logo{
  width:auto;
  height:34px;
  padding:0 12px;
  display:flex;
  align-items:center;
  gap:10px;
}
.logo .logo-img{
  height:22px;
  width:auto;
  max-width:160px;
  display:block;
}
/* ===== HERO SLIDER (UBER-LIKE) ===== */
.hero.hero-swiper{
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: unset;
  padding: 0 !important;
  overflow: hidden;
}

.hero.hero-swiper .swiper,
.hero.hero-swiper .swiper-wrapper,
.hero.hero-swiper .swiper-slide{
  height: 100%;
}

/* Fondo del slide */
.hero.hero-swiper .hero-bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
}
.hero.hero-swiper{
  min-height: 100vh;
}
.hero.hero-swiper .swiper-slide{
  min-height: 100vh;
}
/* Overlay */
.hero.hero-swiper .hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12));
  z-index: 2;
}

/* Texto */
.hero.hero-swiper .hero-bg.hero-text{
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 80px 40px;
  color: #fff;
}

/* Controles */
.heroSlider{ position: relative; }
.heroSlider .swiper-button-prev,
.heroSlider .swiper-button-next{
  display:flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 50 !important;
}
.heroSlider .swiper-button-prev{ left: 16px !important; }
.heroSlider .swiper-button-next{ right: 16px !important; }
.heroSlider .swiper-pagination{
  display:block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 50 !important;
  bottom: 18px !important;
}

/* Móvil */
@media (max-width: 768px){
  .hero.hero-swiper{
    height: 62vh;
    min-height: 520px;
  }
.hero.hero-swiper .hero-text{
  position: absolute;
  z-index: 5;
  max-width: 720px;
  color: #fff;
  left: 40px;
  bottom: 40px;
  padding: 0;
  }
}
.rey-top-banner{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  transform: none;
  opacity: 1;
  transition: none;
}
.header.show{
  transform: none !important;
  opacity: 1 !important;
  background:#ffffff;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.rey-top-banner.show{
  transform: none;
  opacity: 1;
}
/* Tarjetas de servicios - imágenes uniformes */

.service-card .img{
  height:220px;
  overflow:hidden;
  border-radius:12px 12px 0 0;
}

.service-card .img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* HERO FIX PARA SMARTPHONE */

@media (max-width:640px){

  .hero.hero-swiper{
    min-height:90vh;
  }

  .hero.hero-swiper .swiper-slide{
    min-height:90vh;
  }

  .hero.hero-swiper .hero-bg{
    background-size:cover;
    background-position:center top;
  }

}
/* FIX SLIDER MOBILE: imágenes centradas y completas */
@media (max-width: 640px){

  .hero.hero-swiper{
    min-height: 100svh;
  }

  .hero.hero-swiper .swiper-slide{
    min-height: 100svh;
  }

  .hero.hero-swiper .hero-bg{
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

}
/* ===== FIX HERO TEXTO SIEMPRE VISIBLE ===== */
.hero.hero-swiper .swiper-slide{
  position: relative !important;
}

.hero.hero-swiper .hero-bg{
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.hero.hero-swiper .hero-overlay{
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12)) !important;
}

.hero.hero-swiper .hero-text{
  position: absolute !important;
  left: 40px !important;
  right: auto !important;
  bottom: 40px !important;
  top: auto !important;
  z-index: 5 !important;
  max-width: 720px !important;
  color: #fff !important;
  padding: 0 !important;
}

.hero.hero-swiper .hero-title{
  position: relative;
  z-index: 6;
  color: #fff !important;
}

.hero.hero-swiper .hero-sub{
  position: relative;
  z-index: 6;
  color: rgba(255,255,255,.95) !important;
}

/* ===== HERO PC: imagen completa sin recorte ===== */
@media (min-width: 641px) {
  .hero.hero-swiper {
    height: calc(100vh - var(--header-h)) !important;
    min-height: unset !important;
    background-color: #000;
  }
  .hero.hero-swiper .hero-bg {
    background-size: contain !important;
    background-position: center center !important;
    background-color: #000 !important;
  }
}

/* ===== HERO MOBILE ===== */
@media (max-width: 640px) {
  .hero.hero-swiper {
    height: calc(100svh - var(--header-h)) !important;
    min-height: unset !important;
  }
  .hero.hero-swiper .hero-bg {
    background-size: contain !important;
    background-position: top center !important;
    background-color: #000 !important;
  }
  .swiper-slide:nth-child(1) .hero-bg { background-image: url('/index/wp-content/rey-proxy/assets/img/carrusel/hero-01-mobile.webp') !important; }
  .swiper-slide:nth-child(2) .hero-bg { background-image: url('/index/wp-content/rey-proxy/assets/img/carrusel/hero-02-mobile.webp') !important; }
  .swiper-slide:nth-child(3) .hero-bg { background-image: url('/index/wp-content/rey-proxy/assets/img/carrusel/hero-03-mobile.webp') !important; }
  .swiper-slide:nth-child(4) .hero-bg { background-image: url('/index/wp-content/rey-proxy/assets/img/carrusel/hero-04-mobile.webp') !important; }
  .swiper-slide:nth-child(5) .hero-bg { background-image: url('/index/wp-content/rey-proxy/assets/img/carrusel/hero-05-mobile.webp') !important; }
}
