/* ============================================================
   RUTERA — Estilos globales
   ============================================================ */

/* VARIABLES */
:root {
  --verde:     #1A5C4A;
  --verde-d:   #0D3D30;
  --verde-l:   #E8F4EF;
  --naranja:   #E07028;
  --naranja-l: #FEF0E6;
  --arena:     #F4EFE6;
  --asfalto:   #2C2C2A;
  --gris:      #888780;
  --gris-l:    #F1EFE8;
  --blanco:    #FAFAF8;
  --borde:     #E8E5DE;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'DM Sans', system-ui, sans-serif; background: var(--blanco); color: var(--asfalto); overflow-x: hidden; }

/* ── DEV BANNER ─────────────────────────────────────────── */
#dev-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--asfalto); height: 36px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#dev-banner .inner { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.75); }
#dev-banner .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--naranja); flex-shrink: 0; animation: pulse 2s ease-in-out infinite; }
#dev-banner .pill { background: var(--naranja); color: white; font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 10px; letter-spacing: .5px; }
#dev-banner .close-btn { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); cursor: pointer; color: rgba(255,255,255,.4); font-size: 16px; line-height: 1; padding: 2px 6px; border: none; background: none; }
#dev-banner .close-btn:hover { color: rgba(255,255,255,.8); }
body.banner-open > nav { top: 36px; }

/* ── NAV ────────────────────────────────────────────────── */
body > nav { position: fixed; top: 36px; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 5%; height: 64px; background: rgba(250,250,248,.9); backdrop-filter: blur(12px); border-bottom: .5px solid var(--borde); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--gris); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--asfalto); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-p { background: var(--verde); color: white; font-size: 13px; font-weight: 600; padding: 9px 20px; border-radius: 8px; text-decoration: none; transition: opacity .2s; }
.btn-p:hover { opacity: .88; }
.btn-g { background: rgba(255,255,255,.1); color: white; font-size: 14px; font-weight: 500; padding: 12px 22px; border-radius: 10px; text-decoration: none; border: .5px solid rgba(255,255,255,.2); transition: background .2s; display: inline-block; }
.btn-g:hover { background: rgba(255,255,255,.16); }
.btn-n { background: var(--naranja); color: white; font-size: 14px; font-weight: 700; padding: 13px 28px; border-radius: 10px; text-decoration: none; transition: opacity .2s; display: inline-block; }
.btn-n:hover { opacity: .9; }
.btn-outline { display: block; text-align: center; border: 1.5px solid var(--borde); border-radius: 9px; padding: 11px; font-size: 13px; font-weight: 600; color: var(--asfalto); text-decoration: none; }
.btn-cta { display: block; text-align: center; background: var(--naranja); border-radius: 9px; padding: 11px; font-size: 13px; font-weight: 700; color: white; text-decoration: none; }

/* ── FORM ───────────────────────────────────────────────── */
.form-label { font-size: 11px; font-weight: 600; color: var(--gris); display: block; margin-bottom: 5px; }
.form-input { width: 100%; background: #F9F8F6; border: 1.5px solid var(--borde); border-radius: 9px; padding: 11px 14px; font-size: 14px; font-family: 'DM Sans', system-ui, sans-serif; color: var(--asfalto); outline: none; transition: border-color .2s, background .2s; }
.form-input:focus { border-color: var(--verde); background: white; }
.form-input::placeholder { color: #B4B2A9; }
select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888780' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
textarea.form-input { resize: vertical; min-height: 96px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit { width: 100%; background: var(--verde); color: white; border: none; border-radius: 10px; padding: 15px; font-size: 15px; font-weight: 700; font-family: 'DM Sans', system-ui, sans-serif; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.form-submit:hover { background: var(--verde-d); }
.form-submit:disabled { background: #B4B2A9; cursor: not-allowed; }
#success-msg { display: none; background: var(--verde-l); border: 1px solid #C0DDCE; border-radius: 10px; padding: 20px; text-align: center; color: var(--verde); }

/* ── HERO ───────────────────────────────────────────────── */
#hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; }
.hl { background: var(--verde-d); display: flex; flex-direction: column; justify-content: center; padding: 100px 8% 80px; }
.hr { background: var(--arena); display: flex; align-items: center; justify-content: center; padding: 80px 5%; position: relative; overflow: hidden; }
.hr::before { content: ''; position: absolute; top: -80px; right: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(26,92,74,.07); }
.hr::after  { content: ''; position: absolute; bottom: -60px; left: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(224,112,40,.06); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border-radius: 20px; padding: 5px 12px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.7); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 26px; }
.eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--naranja); flex-shrink: 0; }
h1    { font-family: 'DM Serif Display', serif; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.08; color: white; margin-bottom: 18px; }
h1 em { font-style: italic; color: var(--naranja); }
.sub  { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 420px; margin-bottom: 32px; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }
.stats { display: flex; gap: 26px; margin-top: 48px; padding-top: 28px; border-top: .5px solid rgba(255,255,255,.12); }
.sn { font-size: 24px; font-weight: 600; color: white; line-height: 1; }
.sl { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 3px; }

/* ── MOCKUP IMAGES ──────────────────────────────────────── */
.mockup-img { display: block; max-width: 100%; height: auto; }

/* Hero: fill the right column naturally */
.hr .mockup-img { width: 100%; }

/* Dashboard: imagen llena la columna en ancho y alto */
.section-visual.bs {
  padding: 0;              /* quita padding para que la imagen llegue a los bordes */
  align-self: stretch;     /* columna estira hasta la altura del texto */
}
.section-visual.bs .mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  border-radius: 10px;
  display: block;
}

/* Phone-pair sections: llenan el ancho completo de la columna */
#operadores .section-visual .mockup-img,
#pasajeros  .section-visual .mockup-img { width: 100%; }

/* ── SECTIONS ───────────────────────────────────────────── */
section { padding: 96px 5%; }
.stag { display: inline-flex; align-items: center; gap: 6px; background: var(--verde-l); border-radius: 20px; padding: 5px 12px; font-size: 11px; font-weight: 600; color: var(--verde); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.stag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--verde); }
h2    { font-family: 'DM Serif Display', serif; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.12; color: var(--asfalto); margin-bottom: 12px; }
h2 em { font-style: italic; color: var(--verde); }
.p  { font-size: 16px; line-height: 1.7; color: var(--gris); max-width: 480px; }

/* ── FEATURE GRID ───────────────────────────────────────── */
.fg  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--borde); border-radius: 14px; overflow: hidden; border: .5px solid var(--borde); margin-top: 52px; }
.fi  { background: var(--blanco); padding: 30px 26px; }
.fi.warm { background: var(--arena); }
.fic { width: 40px; height: 40px; border-radius: 9px; background: var(--verde-l); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ft  { font-size: 14px; font-weight: 600; color: var(--asfalto); margin-bottom: 5px; }
.fd  { font-size: 13px; line-height: 1.6; color: var(--gris); }

/* ── OPERATOR FEATURE BULLETS ───────────────────────────── */
.op-bullets { display: flex; flex-direction: column; gap: 9px; }
.op-bullet { background: var(--gris-l); border-radius: 9px; padding: 11px 14px; font-size: 13px; color: var(--asfalto); display: flex; gap: 9px; align-items: flex-start; }
.op-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); flex-shrink: 0; margin-top: 5px; }
.op-dot--naranja { background: var(--naranja); }

/* ── BROWSER MOCKUP ─────────────────────────────────────── */
.bs  { background: #E8E4DC; border-radius: 10px; overflow: hidden; border: .5px solid #D3D1C7; }
.bb  { background: #F0EFED; padding: 7px 12px; display: flex; align-items: center; gap: 8px; border-bottom: .5px solid #DDD; }
.bd  { display: flex; gap: 4px; }
.bdo { width: 9px; height: 9px; border-radius: 50%; }
.bu  { flex: 1; background: white; border-radius: 4px; padding: 3px 10px; font-size: 10px; color: #999; text-align: center; border: .5px solid #E0E0E0; }

/* ── BADGE ──────────────────────────────────────────────── */
.badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; }

/* ── PRICING ────────────────────────────────────────────── */
.pg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--borde); border-radius: 16px; overflow: visible; border: .5px solid var(--borde); }
.pc { background: var(--blanco); padding: 36px 26px; text-align: left; }
.pc:first-child { border-radius: 15px 0 0 15px; }
.pc:last-child  { border-radius: 0 15px 15px 0; }
.pc.acc { background: var(--verde-d); position: relative; }

.pc-name    { font-size: 13px; font-weight: 600; color: var(--gris); margin-bottom: 11px; }
.pc-amount  { font-size: 34px; font-weight: 600; color: var(--asfalto); line-height: 1; margin-bottom: 4px; }
.pc-period  { font-size: 14px; font-weight: 400; color: var(--gris); }
.pc-units   { font-size: 12px; color: var(--gris); margin-bottom: 22px; }
.pc-features{ list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 26px; }
.pc-feat    { font-size: 13px; color: var(--asfalto); }
.pc-feat--dim { color: var(--gris); }

.pc.acc .pc-name   { color: rgba(255,255,255,.55); }
.pc.acc .pc-amount { color: white; }
.pc.acc .pc-period { color: rgba(255,255,255,.45); }
.pc.acc .pc-units  { color: rgba(255,255,255,.45); }
.pc.acc .pc-feat   { color: white; }

/* ── QUOTE ──────────────────────────────────────────────── */
.qs { background: var(--verde-d); padding: 60px 5%; }
.qs-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 72px; flex-wrap: wrap; }
.qs-text { font-family: 'DM Serif Display', serif; font-size: clamp(20px, 2.6vw, 32px); line-height: 1.25; color: white; margin-bottom: 12px; }
.qs-author { font-size: 13px; color: rgba(255,255,255,.45); }
.qs-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.qs-stat-n { font-size: 34px; font-weight: 600; color: white; line-height: 1; }
.qs-stat-n--accent { color: var(--naranja); }
.qs-stat-l { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 3px; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--asfalto); padding: 60px 5% 30px; }
.footer-inner  { max-width: 1100px; margin: 0 auto; }
.footer-grid   { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand  { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.38); line-height: 1.7; }
.footer-col-title { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.28); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 13px; }
.footer-links  { display: flex; flex-direction: column; gap: 9px; }
.footer-link   { font-size: 13px; color: rgba(255,255,255,.52); text-decoration: none; }
.footer-text   { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-bottom { border-top: .5px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy   { font-size: 12px; color: rgba(255,255,255,.22); }
.footer-legal  { display: flex; gap: 18px; }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.85); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes fi    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.fl { animation: float 4s ease-in-out infinite; }
.ai { animation: fi .65s ease both; }
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .22s; }
.d3 { animation-delay: .36s; }
.d4 { animation-delay: .5s; }

/* ── HAMBURGER BUTTON ────────────────────────────────────── */
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; padding: 6px; background: none; border: none; cursor: pointer; flex-shrink: 0; }
.nav-burger span { display: block; height: 2px; background: var(--asfalto); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── TABLET (≤ 1024px) ───────────────────────────────────── */
@media (max-width: 1024px) {

  /* Hero: apilar columnas */
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hl { padding: 110px 8% 60px; }
  .hr { padding: 48px 8%; justify-content: center; }

  /* Feature grid: 2 columnas */
  .fg { grid-template-columns: repeat(2, 1fr); }

  /* Pricing: 1 columna */
  .pg { grid-template-columns: 1fr; }
  .pc:first-child { border-radius: 15px 15px 0 0; }
  .pc:last-child  { border-radius: 0 0 15px 15px; }

  /* Contacto: 1 columna */
  #contacto > div { grid-template-columns: 1fr !important; }

  /* Footer: 2 columnas */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Quote */
  .qs-inner { gap: 40px; }
}

/* ── MÓVIL (≤ 768px) ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav: quitar backdrop-filter para que el overlay fixed funcione */
  body > nav { backdrop-filter: none; background: rgba(250,250,248,.98); }

  /* Nav hamburger */
  .nav-links {
    display: none;
    position: fixed; top: 100px; left: 0; right: 0;
    height: 55vh;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 28px; background: var(--blanco);
    border-bottom: .5px solid var(--borde);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    z-index: 95;
  }
  body.banner-hidden .nav-links { top: 64px; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; font-weight: 600; color: var(--asfalto); }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* Banner */
  #dev-banner .inner span:not(.pill) { display: none; }

  /* Secciones base */
  section { padding: 60px 6%; }
  #dashboard { padding: 60px 6%; }

  /* Hero */
  .hl { padding: 120px 6% 52px; }
  .hr { padding: 40px 6%; }
  .sub { max-width: 100%; }
  .stats { flex-wrap: wrap; gap: 20px; }

  /* Feature grid: 1 columna */
  .fg { grid-template-columns: 1fr; }

  /* ── SECCIONES SPLIT: layout content-first ─────────────── */
  .section-split {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Texto siempre primero, full-width */
  .section-text {
    order: 1;
    width: 100%;
    padding-bottom: 48px;
  }
  .section-text p { max-width: 100% !important; }

  /* Visual siempre segundo:
     banda de ancho completo que rompe el padding de la sección */
  .section-visual {
    order: 2;
    width: calc(100% + 12%);
    margin-left: -6%;
    margin-right: -6%;
    margin-bottom: -60px;
    padding: 48px 6%;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    overflow: hidden;
  }

  /* Fondo de banda por sección */
  #dashboard  .section-visual { background: var(--blanco); }
  #operadores .section-visual { background: var(--arena); }
  #pasajeros  .section-visual { background: rgba(0,0,0,.18); }

  /* Imagen: ocupa el ancho de la banda */
  .section-visual .mockup-img { width: 100%; max-width: 100%; border-radius: 8px; }
  .section-visual.bs .mockup-img { border-radius: 8px; }

  /* Pricing: oculta badge "Más popular" en móvil */
  .pc.acc [style*="position:absolute"] { display: none; }

  /* Quote */
  .qs { padding: 48px 6%; }
  .qs-inner { flex-direction: column; gap: 32px; }
  .qs-stats { gap: 20px; }

  /* Form */
  .form-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ── MÓVIL PEQUEÑO (≤ 480px) ─────────────────────────────── */
@media (max-width: 480px) {

  /* Nav */
  .nav-links { top: 100px; }

  /* Hero */
  .hl { padding: 116px 5% 44px; }
  .hr { display: none; }
  h1  { font-size: 38px; }

  /* Pricing */
  .pc { padding: 28px 20px; }

  /* Quote stats */
  .qs-stats { flex-direction: column; gap: 16px; }
  .qs-stat-n { font-size: 28px; }

  /* Form */
  #contacto > div > div:last-child { padding: 24px 18px; }
}
