/* ==========================================================
   RemaMudanzas S.L. — Design tokens
   ========================================================== */
:root{
  --navy: #0b2545;
  --blue: #134074;
  --orange: #ff6b35;
  --orange-deep: #f26419;
  --ink: #0f1b2d;
  --mist: #f5f7fa;
  --white: #ffffff;
  --gray: #64748b;
  --line: rgba(11,37,69,0.08);
  --line-light: rgba(255,255,255,0.14);
  --shadow-soft: 0 10px 30px rgba(11,37,69,0.10);
  --shadow-card: 0 6px 18px rgba(11,37,69,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --ff-display: 'Poppins', sans-serif;
  --ff-body: 'Inter', sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ font-family: var(--ff-display); margin:0; color: var(--navy); }
p{ margin:0; }

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

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

/* ==========================================================
   Buttons
   ========================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 26px;
  border-radius: 999px;
  font-family: var(--ff-display);
  font-weight:600;
  font-size:0.95rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:nowrap;
}
.btn.small{ padding:10px 18px; font-size:0.85rem; width:100%; justify-content:center; }
.btn-cta{
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color:#fff;
  box-shadow: 0 8px 22px rgba(242,100,25,0.35);
}
.btn-cta:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242,100,25,0.45); }
.btn-cta-outline{
  border:2px solid var(--navy);
  color: var(--navy);
  background:transparent;
}
.btn-cta-outline:hover{ background: var(--navy); color:#fff; transform: translateY(-2px); }
.btn-cta-outline.light{ border-color:#fff; color:#fff; }
.btn-cta-outline.light:hover{ background:#fff; color: var(--navy); }
.btn-whatsapp{
  background:#25D366;
  color:#fff;
  box-shadow: 0 8px 22px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,211,102,0.45); }
.btn-whatsapp-mini{
  display:flex; align-items:center; gap:6px;
  color: var(--navy); font-weight:600; font-size:0.9rem;
}
.btn-whatsapp-mini svg{ color:#25D366; }

/* ==========================================================
   Header
   ========================================================== */
.site-header{
  position:sticky; top:0; z-index:60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 24px;
  gap:20px;
}
.brand-logo{ height:52px; width:auto; }
.main-nav{ display:flex; gap:28px; }
.nav-link{
  font-family: var(--ff-display);
  font-weight:500;
  font-size:0.92rem;
  color: var(--ink);
  position:relative;
  padding:6px 0;
}
.nav-link::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px;
  background: var(--orange); transition: width .2s ease;
}
.nav-link:hover::after, .nav-link.active::after{ width:100%; }
.header-actions{ display:flex; align-items:center; gap:22px; }

.hamburger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; border:none; background:transparent; cursor:pointer;
}
.hamburger span{ height:2px; width:100%; background: var(--navy); border-radius:2px; transition: all .25s ease; }
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu{
  display:none; flex-direction:column;
  position:fixed; top:0; right:0; height:100vh; width:min(78vw,320px);
  background: var(--navy); z-index:70;
  padding:100px 28px 28px;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-menu.open{ transform: translateX(0); display:flex; }
.mobile-menu a{
  color:#fff; font-family: var(--ff-display); font-weight:500;
  padding:14px 0; border-bottom:1px solid var(--line-light);
}
.mobile-whatsapp{ color:#25D366 !important; margin-top:10px; }

/* ==========================================================
   Route rail — signature element (desktop only)
   ========================================================== */
.route-rail{
  position:fixed; left:22px; top:0; bottom:0; width:24px; z-index:50;
  display:none;
  pointer-events:none;
}
.route-line{
  position:absolute; left:11px; top:0; bottom:0; width:2px;
  background: repeating-linear-gradient(to bottom, var(--orange) 0 6px, transparent 6px 14px);
  opacity:0.55;
}
.route-truck{
  position:absolute; left:0; top:0; width:24px; height:24px;
  color: var(--orange-deep);
  filter: drop-shadow(0 2px 4px rgba(242,100,25,0.4));
  transition: top .05s linear;
}

@media (min-width:1300px){
  .route-rail{ display:block; }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero{
  position:relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--blue) 0%, var(--navy) 55%, #081b34 100%);
  overflow:hidden;
  padding-top:64px;
}
.hero-lines{ position:absolute; inset:0; pointer-events:none; opacity:0.5; }
.hero-lines span{
  position:absolute; height:2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: sweep 5s linear infinite;
}
.hero-lines span:nth-child(1){ top:18%; width:60%; left:-60%; animation-delay:0s; }
.hero-lines span:nth-child(2){ top:34%; width:40%; left:-40%; animation-delay:.6s; }
.hero-lines span:nth-child(3){ top:52%; width:70%; left:-70%; animation-delay:1.2s; }
.hero-lines span:nth-child(4){ top:68%; width:35%; left:-35%; animation-delay:1.8s; }
.hero-lines span:nth-child(5){ top:82%; width:50%; left:-50%; animation-delay:2.4s; }
@keyframes sweep{
  to{ transform: translateX(220%); }
}

.hero-inner{
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center;
  padding:72px 24px 88px; position:relative; z-index:2;
}
.eyebrow{
  font-family: var(--ff-display); font-weight:600; font-size:0.8rem;
  letter-spacing:0.14em; text-transform:uppercase;
  color: var(--orange);
  margin:0 0 14px;
}
.eyebrow.center{ text-align:center; }
.hero-copy h1{
  color:#fff; font-size:clamp(2.2rem, 4vw, 3.2rem); line-height:1.12; font-weight:700;
  margin-bottom:20px;
}
.hero-copy h1 span{ color: var(--orange); }
.hero-sub{ color:rgba(255,255,255,0.78); font-size:1.05rem; line-height:1.6; max-width:520px; margin-bottom:32px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:16px; }
.btn-cta-outline{ }
.hero-actions .btn-cta-outline{ border-color:rgba(255,255,255,0.5); color:#fff; }
.hero-actions .btn-cta-outline:hover{ background:#fff; color:var(--navy); }

.truck-illustration{ width:100%; height:auto; max-width:480px; margin:0 auto; display:block; }

.hero-photo-frame{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 24px 50px rgba(3,12,26,0.45);
  border:1px solid rgba(255,255,255,0.12);
}
.hero-photo{
  width:100%; height:100%;
  aspect-ratio: 4/3;
  object-fit:cover;
  display:block;
}

.stats-bar{
  position:relative; z-index:2;
  background: rgba(255,255,255,0.06);
  border-top:1px solid var(--line-light);
}
.stats-inner{
  display:grid; grid-template-columns:repeat(4,1fr);
  padding:28px 24px;
  gap:16px;
}
.stat{ text-align:center; }
.stat-num{
  display:block; font-family: var(--ff-display); font-weight:700;
  font-size:clamp(1.6rem,3vw,2.2rem); color:#fff;
}
.stat-label{ display:block; color:rgba(255,255,255,0.65); font-size:0.82rem; margin-top:4px; }

/* ==========================================================
   Sections
   ========================================================== */
.section{ padding:96px 0; }
.section-alt{ background: var(--mist); }
.section-dark{ background: var(--navy); color:#fff; }
.section-dark .section-title, .section-dark h2{ color:#fff; }
.section-title{
  font-size:clamp(1.7rem,3vw,2.3rem); font-weight:700; margin:0 0 16px;
}
.section-title.center{ text-align:center; max-width:720px; margin-left:auto; margin-right:auto; }
.section-sub{ color: var(--gray); max-width:620px; margin:0 auto 48px; text-align:center; line-height:1.6; }
.section-sub.center{ }

[data-reveal]{ opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in-view{ opacity:1; transform:none; }

/* Services */
.services-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-top:56px;
}
.service-card{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding:32px 26px; box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.service-icon{
  width:52px; height:52px; border-radius:14px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color:#fff; display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
}
.service-icon svg{ width:26px; height:26px; }
.service-card h3{ font-size:1.1rem; margin-bottom:10px; }
.service-card p{ color: var(--gray); font-size:0.92rem; line-height:1.55; }

/* Process */
.process-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin-top:56px;
}
.process-step{ text-align:center; padding:0 12px; }
.process-num{
  display:inline-block; font-family: var(--ff-display); font-weight:800;
  font-size:2.4rem; color: var(--orange); opacity:0.9; margin-bottom:10px;
}
.process-step h3{ font-size:1.15rem; margin-bottom:10px; }
.process-step p{ color: var(--gray); line-height:1.6; }

/* About */
.about-grid{ display:grid; grid-template-columns:1.2fr 0.8fr; gap:56px; align-items:center; }
.about-text{ color:rgba(255,255,255,0.78); line-height:1.7; margin:20px 0 26px; }
.checklist li{
  color:#fff; padding:10px 0 10px 30px; position:relative; border-bottom:1px solid var(--line-light);
  font-size:0.95rem;
}
.checklist li::before{ content:'●'; position:absolute; left:0; color: var(--orange); font-size:0.6rem; top:18px; }
.about-card{
  border-radius: var(--radius); overflow:hidden;
  box-shadow: 0 20px 44px rgba(0,0,0,0.35);
  border:1px solid var(--line-light);
}
.about-photo{ width:100%; height:100%; aspect-ratio: 4/5; object-fit:cover; display:block; }

/* Portfolio */
.portfolio-track{
  display:flex; gap:20px; overflow-x:auto; padding:8px 24px 12px;
  scroll-snap-type:x mandatory;
}
.portfolio-track::-webkit-scrollbar{ height:8px; }
.portfolio-track::-webkit-scrollbar-thumb{ background: var(--line); border-radius:4px; }
.portfolio-item{
  flex:0 0 auto; width:280px; scroll-snap-align:start;
}
.portfolio-scene{
  width:100%; height:170px; border-radius: var(--radius); overflow:hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease;
}
.portfolio-scene svg{ width:100%; height:100%; display:block; }
.portfolio-item:hover .portfolio-scene{ transform: translateY(-4px) scale(1.02); }
.portfolio-caption{
  font-family: var(--ff-display); font-weight:600; font-size:0.92rem;
  color: var(--navy); padding:14px 4px 4px;
}

/* Testimonials */
.testimonial-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:48px; }
.testimonial{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding:30px 26px; box-shadow: var(--shadow-card);
}
.testimonial p{ color: var(--ink); line-height:1.65; margin-bottom:18px; font-size:0.95rem; }
.testimonial span{ color: var(--gray); font-size:0.85rem; font-weight:600; }

/* CTA final */
.cta-final{
  background: linear-gradient(120deg, var(--navy), var(--blue));
  padding:64px 0;
}
.cta-final-inner{
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.cta-final h2{ color:#fff; font-size:clamp(1.5rem,3vw,2rem); margin-bottom:10px; }
.cta-final p{ color:rgba(255,255,255,0.75); }
.cta-final-actions{ display:flex; gap:16px; flex-wrap:wrap; }

/* Footer */
.site-footer{ background:#081a30; color:rgba(255,255,255,0.75); }
.footer-inner{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; padding:64px 24px 40px;
}
.footer-logo{ height:44px; width:auto; margin-bottom:14px; filter: brightness(0) invert(1); opacity:0.9; }
.footer-brand p{ font-size:0.88rem; line-height:1.6; max-width:280px; }
.footer-col h4{ font-family: var(--ff-display); color:#fff; font-size:0.95rem; margin-bottom:18px; }
.footer-col a{ display:block; padding:6px 0; font-size:0.88rem; }
.footer-col a:hover{ color: var(--orange); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.08); padding:20px 0; }
.footer-bottom p{ font-size:0.78rem; text-align:center; opacity:0.6; }

/* Floating WhatsApp */
.whatsapp-float{
  position:fixed; bottom:22px; right:22px; z-index:80;
  width:60px; height:60px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px rgba(37,211,102,0.45);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ box-shadow:0 10px 26px rgba(37,211,102,0.45); }
  50%{ box-shadow:0 10px 26px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.12); }
}

/* Trust / CRO strip */
.trust-strip{
  background: var(--white);
  border-bottom:1px solid var(--line);
}
.trust-inner{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
  padding:28px 24px;
}
.trust-item{
  display:flex; align-items:center; gap:12px;
  font-family: var(--ff-display); font-weight:600; font-size:0.92rem;
  color: var(--navy);
}
.trust-item svg{ width:30px; height:30px; flex-shrink:0; color: var(--orange-deep); }

/* FAQ accordion */
.faq-list{ max-width:760px; margin:48px auto 0; display:flex; flex-direction:column; gap:14px; }
.faq-item{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm);
  overflow:hidden;
}
.faq-question{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 24px; background:none; border:none; cursor:pointer; text-align:left;
  font-family: var(--ff-display); font-weight:600; font-size:1rem; color: var(--navy);
}
.faq-icon{ width:20px; height:20px; flex-shrink:0; color: var(--orange-deep); transition: transform .25s ease; }
.faq-question[aria-expanded="true"] .faq-icon{ transform: rotate(180deg); }
.faq-answer{
  max-height:0; overflow:hidden; transition: max-height .3s ease;
}
.faq-answer p{
  padding:0 24px 20px; color: var(--gray); line-height:1.6; font-size:0.94rem;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px){
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .testimonial-grid{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .process-grid{ grid-template-columns:1fr; gap:40px; }
}

@media (max-width: 860px){
  .trust-inner{ grid-template-columns:1fr; }
  .main-nav, .header-actions .btn-cta{ display:none; }
  .hamburger{ display:flex; }
  .hero-inner{ grid-template-columns:1fr; padding:48px 24px 56px; text-align:center; }
  .hero-copy{ order:2; }
  .hero-art{ order:1; }
  .hero-sub{ margin-left:auto; margin-right:auto; }
  .hero-actions{ justify-content:center; }
  .stats-inner{ grid-template-columns:repeat(2,1fr); }
  .services-grid{ grid-template-columns:1fr; }
  .footer-inner{ grid-template-columns:1fr; text-align:center; }
  .footer-brand p{ margin:0 auto; }
  .cta-final-inner{ justify-content:center; text-align:center; }
}

@media (max-width: 480px){
  .header-actions .btn-whatsapp-mini span{ display:none; }
  .brand-logo{ height:40px; }
}
