/* Madrid Group Taxi — hoja de estilos común */
:root {
  --navy: #13213c;
  --navy-2: #1d2d4d;
  --red: #c8102e;
  --red-dark: #a30d25;
  --cream: #f7f1e6;
  --sand: #ece4d4;
  --gold: #e8a83a;
  --text: #1f2635;
  --muted: #5d6474;
  --line: #ddd5c6;
  --white: #fff;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: Archivo, "Helvetica Neue", Arial, sans-serif; color: var(--navy); line-height: 1.12; }
h1 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.015em; margin-bottom: 18px; }
h3 { font-weight: 700; font-size: 1.25rem; margin-bottom: 8px; }
p + p { margin-top: 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sec { padding: 88px 0; }
.sec-cream { background: var(--cream); }
.sec-navy { background: var(--navy); color: #d8deea; }
.sec-navy h2, .sec-navy h3 { color: var(--white); }
.kicker { font-family: Archivo, sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; display: block; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy); color: #c9d1e0; font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.topbar a { text-decoration: none; color: #fff; }
.topbar .sep { opacity: .35; margin: 0 10px; }
.topbar .lang a { opacity: .6; } .topbar .lang a.on { opacity: 1; font-weight: 600; }
@media (max-width: 760px) { .topbar .hide-m { display: none; } }

/* ---------- Cabecera ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 66px; height: 66px; }
.logo-txt { display: flex; flex-direction: column; align-items: flex-start; font-family: Archivo, sans-serif; color: var(--navy); line-height: 1; }
.logo-txt b { font-weight: 800; font-size: 1.75rem; letter-spacing: -.02em; }
.logo-txt i { font-style: normal; font-weight: 600; font-size: .98rem; letter-spacing: .19em; margin-top: 3px; }
.logo-txt em { font-style: normal; font-weight: 700; font-size: .6rem; letter-spacing: .16em; background: var(--red); color: #fff; padding: 4px 9px; border-radius: 99px; margin-top: 6px; }
.logo-w .logo-txt { color: #fff; }
.logo-w img { box-shadow: 0 0 0 3px var(--cream); border-radius: 50%; }
.menu { display: flex; align-items: center; gap: 30px; font-family: Archivo, sans-serif; font-weight: 600; font-size: .98rem; }
.menu a { text-decoration: none; color: var(--navy); padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a.on { border-bottom-color: var(--red); }
.menu .btn { white-space: nowrap; padding: 10px 18px; border: 1.5px solid var(--navy); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px auto; }
@media (max-width: 940px) {
  .menu { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .menu.open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; justify-content: center; }
  .burger { display: block; }
  .logo img { width: 50px; height: 50px; } .logo-txt b { font-size: 1.35rem; } .logo-txt i { font-size: .78rem; } .logo-txt em { font-size: .52rem; } .header .wrap { height: 76px; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: Archivo, sans-serif; font-weight: 600; font-size: .96rem; text-decoration: none; padding: 12px 20px; border-radius: 6px; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-line { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-line-w { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-wa { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-wa:hover { background: rgba(255,255,255,.1); }
.btn-wa svg { color: #4ad27c; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.menu .btn-red { background: transparent; color: var(--navy); border-color: var(--navy); }
.menu .btn-red:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.quote .btn-red, .form-box .btn-red { background: var(--navy); }
.quote .btn-red:hover, .form-box .btn-red:hover { background: var(--navy-2); }
.link-arrow { font-family: Archivo, sans-serif; font-weight: 700; color: var(--red); text-decoration: none; display: inline-block; margin-top: 18px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Portada ---------- */
.hero { position: relative; color: #fff; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,22,40,.92) 0%, rgba(13,22,40,.78) 42%, rgba(13,22,40,.25) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.9rem); margin-bottom: 20px; }
.hero p.sub { font-size: 1.2rem; color: #dfe4ee; max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .note { margin-top: 22px; font-size: .95rem; color: #b9c2d3; }
.hero .note strong { color: #fff; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; } .hero-bg::after { background: rgba(13,22,40,.8); } }

.page-hero { position: relative; color: #fff; background: var(--navy); }
.page-hero .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; max-width: var(--wrap); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 760px; margin-bottom: 16px; }
.page-hero p { font-size: 1.15rem; color: #dfe4ee; max-width: 620px; }
.crumbs { font-size: .88rem; color: #aab4c6; margin-bottom: 18px; }
.crumbs a { color: #aab4c6; }

/* ---------- Formulario rápido ---------- */
.quote { background: #fff; color: var(--text); border-radius: 10px; padding: 28px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); }
.quote h3 { font-size: 1.3rem; margin-bottom: 4px; }
.quote .muted { font-size: .92rem; margin-bottom: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: #fbfaf7;
  border: 1px solid #cfc7b6; border-radius: 6px; padding: 11px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; background: #fff; }
.quote .btn { width: 100%; justify-content: center; margin-top: 18px; }
.quote small { display: block; font-size: .8rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Franja de datos ---------- */
.facts { background: var(--cream); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 24px 20px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-family: Archivo, sans-serif; font-size: 1.5rem; color: var(--navy); line-height: 1.2; }
.facts span { font-size: .95rem; color: var(--muted); }
@media (max-width: 820px) { .facts ul { grid-template-columns: 1fr 1fr; } .facts li { border-left: 0; padding-left: 0; } }

/* ---------- Bloques de texto + foto ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > .ph { order: 2; }
.ph { position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; aspect-ratio: 4 / 3; }
.ph .tag { position: absolute; left: -14px; bottom: 28px; background: var(--red); color: #fff; font-family: Archivo, sans-serif; font-weight: 700; padding: 10px 16px; font-size: .95rem; }
.ph .credit { position: absolute; right: 8px; bottom: 6px; font-size: .68rem; color: rgba(255,255,255,.75); }
.checks { list-style: none; margin-top: 22px; }
.checks li { padding: 10px 0 10px 30px; border-top: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev > .ph { order: 0; } .ph .tag { left: 0; } }

/* ---------- Servicios con foto ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.svc { text-decoration: none; display: block; }
.svc img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 4px; margin-bottom: 18px; transition: opacity .2s; }
.svc:hover img { opacity: .88; }
.svc:hover h3 { color: var(--red); }
.svc p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* ---------- Tabla del vehículo ---------- */
.spec { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 1rem; }
.spec th, .spec td { text-align: left; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); vertical-align: top; }
.spec th { font-weight: 600; color: #fff; width: 44%; padding-right: 16px; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 36px; counter-reset: paso; }
.steps > div { border-top: 3px solid var(--navy); padding-top: 18px; }
.steps > div::before { counter-increment: paso; content: "Paso " counter(paso); display: block; font-family: Archivo, sans-serif; font-weight: 700; font-size: .85rem; color: var(--red); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 1rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Terminales ---------- */
.terminals { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 6px; margin-top: 32px; background: #fff; }
.terminals div { padding: 22px; border-left: 1px solid var(--line); }
.terminals div:first-child { border-left: 0; }
.terminals b { font-family: Archivo, sans-serif; font-size: 1.6rem; color: var(--navy); display: block; }
.terminals span { font-size: .95rem; color: var(--muted); }
@media (max-width: 820px) { .terminals { grid-template-columns: 1fr 1fr; } .terminals div:nth-child(3) { border-left: 0; } .terminals div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Destinos ---------- */
.trips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.trips div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); }
.trips b { font-family: Archivo, sans-serif; font-size: 1.15rem; color: var(--navy); display: block; }
.trips span { font-size: .95rem; color: var(--muted); }
@media (max-width: 820px) { .trips { grid-template-columns: 1fr 1fr; } }

/* ---------- Preguntas ---------- */
.faq { max-width: 820px; margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-family: Archivo, sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 720px; }

/* ---------- Banda final ---------- */
.cta { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: .28; }
.cta .wrap { position: relative; padding-top: 80px; padding-bottom: 80px; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #dfe4ee; font-size: 1.1rem; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.phone-big { font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: #fff; text-decoration: none; display: block; margin-bottom: 14px; letter-spacing: .01em; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.contact dl { margin-top: 24px; }
.contact dt { font-family: Archivo, sans-serif; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 22px; }
.contact dd { font-size: 1.15rem; color: var(--navy); }
.contact dd a { text-decoration: none; font-weight: 600; }
.form-box { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 32px; }
.form-box h3 { margin-bottom: 6px; }
.form-box .fields { margin-top: 20px; }
.form-box .btn { margin-top: 20px; }
.form-box small { display: block; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); grid-column: 1 / -1; }
.check input { width: auto; margin-top: 5px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Pie ---------- */
.footer { background: #0d1628; color: #aeb7c7; font-size: .95rem; padding: 64px 0 28px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo { margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: #d2d8e3; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .legal { border-top: 1px solid #24304a; margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 860px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .cols { grid-template-columns: 1fr; } }

/* ---------- Botones fijos en móvil ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -6px 20px rgba(0,0,0,.15); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; font-family: Archivo, sans-serif; font-weight: 700; text-decoration: none; }
  .mobile-bar svg { width: 18px; height: 18px; }
  .mobile-bar .call { background: var(--red); color: #fff; }
  .mobile-bar .wa { background: var(--navy); color: #fff; }
  .mobile-bar .wa svg { color: #4ad27c; }
  body { padding-bottom: 56px; }
}
