/* =========================================================================
   AutoMecánico — Portada pública (estilo "auto service" con la paleta de la plataforma: azul + verde)
   ========================================================================= */
:root {
  --acento: #1CA97A;
  --acento-2: #168A64;
  --azul: #0F4C81;
  --azul-2: #0C3E69;
  --negro: #0B1626;
  --negro-2: #14233A;
  --crema: #F5F4EE;
  --texto: #4C4C4C;
  --linea: #E4E2D9;
  --f-t: 'Barlow', system-ui, sans-serif;
  --f-b: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: hidden; }
body { margin: 0; font-family: var(--f-b); font-size: 16px; line-height: 1.7; color: var(--texto); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-t); color: var(--negro); line-height: 1.15; }
.wrap { width: min(1296px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--texto); }
em { font-style: normal; }

/* ---------- Botones ---------- */
.btn-main, .btn-dark, .btn-line {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-t); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-transform: uppercase;
  padding: 14px 30px; border: 0; transition: background .2s, color .2s;
}
.btn-main { background: var(--acento); color: #fff; }
.btn-main:hover { background: var(--acento-2); }
.btn-dark { background: var(--negro); color: #fff; }
.btn-dark:hover { background: var(--acento); }
/* esquinas en "corchete" de los botones */
.btn-main::before, .btn-main::after, .btn-dark::before, .btn-dark::after { content: ""; position: absolute; top: 50%; width: 5px; height: 72%; transform: translateY(-50%); }
.btn-main::before, .btn-dark::before { left: -3px; } .btn-main::after, .btn-dark::after { right: -3px; }
.btn-main::before, .btn-main::after { background: var(--azul); }
.btn-dark::before, .btn-dark::after { background: var(--negro); }
.btn-line { border: 2px solid rgba(255,255,255,.5); color: #fff; }
.btn-line:hover { background: #fff; color: var(--negro); }
.btn-block { width: 100%; }

/* ---------- Barra superior ---------- */
.topbar { display: flex; justify-content: space-between; background: var(--negro); color: #fff; font-size: 14.5px; font-weight: 500; height: 60px; }
.topbar > div { display: flex; align-items: center; gap: 18px; padding: 0 24px; }
.topbar i.bi { color: #5FE0B4; margin-right: 6px; }
.topbar .sep { width: 1px; height: 22px; background: rgba(255,255,255,.2); }
.topbar-r { background: var(--azul); padding-left: 72px !important; padding-right: 36px !important; clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%); }
.topbar-r i.bi { color: #fff; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #2ECC71; animation: pulso 2s infinite; }
.status.off i { background: #E74C3C; animation: none; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(46,204,113,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(46,204,113,0); } }

/* ---------- Header ---------- */
.head { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100px; background: #fff; padding-right: 24px; box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.logo { align-self: stretch; display: flex; align-items: center; background: linear-gradient(135deg, var(--azul), var(--azul-2)); padding: 0 64px 0 32px; clip-path: polygon(0 0, 100% 0, calc(100% - 42px) 100%, 0 100%); }
.logo-in { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo-in i { font-size: 34px; }
.logo-in b { font-family: var(--f-t); font-weight: 800; font-size: 32px; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.logo-in b em { color: #5FE0B4; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { font-family: var(--f-t); font-weight: 600; font-size: 18px; text-transform: uppercase; color: #333; padding: 8px 14px; transition: color .15s; }
.nav a:hover, .nav a.on { color: var(--acento); }
.nav-m { display: none; }
.head-r { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: var(--negro); flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.burger span { width: 22px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--negro); background-image: linear-gradient(90deg, rgba(11,22,38,.97) 0%, rgba(11,22,38,.86) 55%, rgba(11,22,38,.7) 100%), var(--hero-img); background-size: cover; background-position: center; padding: 110px 0 150px; color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: center; }
.hero-in > * { min-width: 0; }
.hero-tag { display: block; font-family: var(--f-t); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .06em; color: #5FE0B4; margin-bottom: 14px; }
.hero h1 { color: #fff; font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 7vw, 90px); line-height: .98; }
.hero h1 em { color: #5FE0B4; }
.hero-copy > p { max-width: 520px; margin: 26px 0 36px; font-size: 18px; color: #D6D6D6; }
.hero-btns { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-dots { display: flex; gap: 6px; margin-top: 56px; }
.hero-dots i { width: 56px; height: 8px; border-radius: 8px; background: var(--acento); } .hero-dots i + i { width: 18px; background: #8E8E8E; }
.treads { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: repeating-linear-gradient(115deg, #0B1626 0 14px, #12233F 14px 28px); }

/* login */
.login { background: #fff; color: var(--negro); padding: 36px 32px 30px; border-top: 6px solid var(--acento); }
.login-tag { display: inline-block; background: var(--negro); color: #fff; font-family: var(--f-t); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; }
.login h2 { font-size: 34px; text-transform: uppercase; margin: 14px 0 2px; }
.login-sub { color: var(--texto); margin-bottom: 22px; }
.fld { display: block; margin-bottom: 16px; }
.fld > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--negro); }
.inp { display: flex; align-items: center; background: var(--crema); border: 2px solid transparent; transition: border-color .15s, background .15s; }
.inp:focus-within { border-color: var(--acento); background: #fff; }
.inp > i { padding-left: 14px; color: #888; }
.inp input { flex: 1; min-width: 0; border: 0; background: none; padding: 14px 12px; font: inherit; color: var(--negro); outline: none; }
.pw-eye { background: none; border: 0; padding: 0 14px; color: #888; font-size: 17px; }
.login .btn-main { margin-top: 6px; }
.login-note { margin-top: 18px; font-size: 13px; color: #6b6b6b; line-height: 1.55; }
.login-note i { color: var(--acento); margin-right: 4px; }
.login-alt { display: block; text-align: center; margin-top: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Secciones ---------- */
.sec { padding: 120px 0; position: relative; }
.sec-cream { background: var(--crema); }
.sec-dark { background: var(--negro); background-image: linear-gradient(135deg, #0B1626 0%, #12233F 50%, #0B1626 100%); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; text-transform: uppercase; color: var(--acento-2); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--acento-2); }
.eb-c::after { content: ""; width: 38px; height: 2px; background: var(--acento-2); }
.eb-c { justify-content: center; }
.eb-w { color: #fff; }
.sec h2, .split h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; }
.head-c { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sec-dark h2, .sec-dark h3 { color: #fff; }

/* nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about > * { min-width: 0; }
.about-img { position: relative; min-height: 640px; }
.frame { position: absolute; background: #fff; padding: 24px; border: 2px dashed #D7D5CB; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.f1 { right: 0; top: 40px; width: 62%; height: 500px; z-index: 2; }
.f2 { left: 0; top: 190px; width: 58%; height: 420px; z-index: 1; }
.bar { position: absolute; left: 33%; top: 50px; width: 16px; height: 130px; background: var(--acento); z-index: 3; }
.about-stat { position: absolute; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 18px; background: #fff; padding: 12px 0 0 18px; }
.about-stat b { font-family: var(--f-t); font-size: 21px; line-height: 1.25; color: var(--negro); }
.about-stat span { border-left: 2px solid var(--linea); padding-left: 18px; font-family: var(--f-t); font-size: 64px; font-weight: 500; color: var(--acento); line-height: 1; }
.about-txt h2 { margin-bottom: 18px; }
.about-txt > .muted { margin-bottom: 26px; }
.tabs3 { display: flex; border-left: 3px solid var(--acento); background: var(--crema); margin-bottom: 20px; }
.tabs3 button { flex: 1; border: 0; background: none; padding: 16px 10px; font-family: var(--f-t); font-weight: 600; font-size: 18px; color: #444; }
.tabs3 button.on { background: var(--acento); color: #fff; }
.pane { display: none; margin-bottom: 18px; } .pane.on { display: block; }
.checks { margin: 20px 0 34px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 8px; color: #333; }
.checks li::before { content: "\F26A"; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 0; color: var(--acento); font-size: 20px; }

/* tarjetas de servicio */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scard { background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.scard > img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.scard-b { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 26px 26px 70px; }
.vert { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-t); font-size: 32px; font-weight: 600; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px #C9C9C9; white-space: nowrap; align-self: start; }
.scard-b i.bi { font-size: 44px; color: var(--acento); line-height: 1; }
.scard-b h3 { font-size: 26px; margin: 12px 0 8px; }
.go { position: absolute; right: 0; bottom: 0; width: 58px; height: 52px; background: var(--negro); color: #fff; display: grid; place-items: center; font-size: 22px; transition: background .2s; }
.go:hover, .scard:hover .go, .bcard:hover .go { background: var(--acento); }

/* catálogo */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filters button { background: none; border: 2px solid #333; color: #fff; padding: 8px 22px; font-family: var(--f-t); font-weight: 600; font-size: 17px; text-transform: uppercase; }
.filters button.on, .filters button:hover { background: var(--acento); border-color: var(--acento); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat { background: var(--negro-2); border-bottom: 3px solid transparent; padding: 28px 24px; transition: border-color .2s, transform .2s; }
.cat:hover { border-color: var(--acento); transform: translateY(-4px); }
.cat[hidden] { display: none; }
.cat > i { font-size: 38px; color: var(--acento); display: block; margin-bottom: 14px; }
.cat h3 { font-size: 22px; margin-bottom: 6px; }
.cat p { color: #AFAFAF; font-size: 15px; line-height: 1.55; }

/* por qué */
.why { overflow: hidden; }
.why { padding-top: 170px; }
.ghost { position: absolute; left: 0; right: 0; top: 10px; text-align: center; font-family: var(--f-t); font-weight: 800; font-size: clamp(56px, 9vw, 120px); color: #F3F5F8; white-space: nowrap; line-height: 1; pointer-events: none; }
.why .wrap { position: relative; }
.why-grid { display: grid; grid-template-columns: 1fr 380px 1fr; gap: 40px; align-items: center; }
.why-grid > * { min-width: 0; }
.why-col { display: grid; gap: 44px; }
.wf { display: flex; gap: 18px; align-items: flex-start; }
.wf > i { font-size: 46px; color: var(--acento); line-height: 1; flex: none; }
.wf h3 { font-size: 24px; margin-bottom: 6px; }
.wf p { font-size: 15px; line-height: 1.6; }
.why-col.l .wf { text-align: right; justify-content: flex-end; }
.why-img { position: relative; align-self: end; }
.why-img .disc { position: absolute; left: 50%; bottom: 0; width: 370px; height: 370px; max-width: 100%; border-radius: 50%; background: #F3F3F3; transform: translateX(-50%); }
.why-img img { position: relative; width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; clip-path: ellipse(50% 52% at 50% 48%); }

/* cómo funciona (split) */
.split { display: grid; grid-template-columns: 40% 60%; background: #0B1626; }
.split-img { position: relative; min-height: 560px; background: var(--bg) center/cover; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 110px; height: 110px; border-radius: 50%; background: #fff; color: var(--acento); display: grid; place-items: center; font-size: 38px; box-shadow: 0 0 0 22px rgba(255,255,255,.15); }
.split-txt { padding: 90px 7%; color: #fff; }
.split-txt h2 { color: #fff; margin-bottom: 36px; }
.split-txt h2 em { color: var(--acento); }
.steps li { display: grid; grid-template-columns: 74px 1fr; gap: 6px; padding: 18px 0; border-top: 1px solid #223552; }
.steps li:last-child { border-bottom: 1px solid #223552; }
.steps b { font-family: var(--f-t); font-size: 46px; line-height: 1; color: var(--acento); font-weight: 700; }
.steps h3 { color: #fff; font-size: 24px; margin-bottom: 2px; }
.steps p { color: #AFAFAF; }

/* perfiles */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.m-img { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.m-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.member:hover .m-img img { transform: scale(1.06); }
.plus { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--negro); }
.m-info { background: var(--negro); padding: 20px 24px; margin-top: 8px; }
.m-info h3 { color: #fff; font-size: 24px; }
.m-info p { color: #CFCFCF; font-size: 14.5px; line-height: 1.5; margin-top: 2px; }

/* contadores */
.counters { background: #08111E; background-image: repeating-linear-gradient(115deg, #08111E 0 22px, #0D1B2E 22px 44px); padding: 130px 0 90px; }
.cnt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cnt { position: relative; background: linear-gradient(160deg, var(--azul), var(--azul-2)); color: #fff; text-align: center; padding: 64px 12px 30px; }
.cnt-ico { position: absolute; left: 50%; top: -46px; transform: translateX(-50%); width: 92px; height: 92px; border-radius: 50%; background: var(--acento); border: 6px solid #08111E; display: grid; place-items: center; font-size: 38px; }
.cnt strong { display: block; font-family: var(--f-t); font-size: 54px; font-weight: 700; line-height: 1; color: #fff; }
.cnt > span:last-child { font-family: var(--f-t); font-size: 24px; font-weight: 600; }

/* tarjetas "blog" */
.bcard { background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.bcard > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.bcard-b { padding: 26px 32px 32px; }
.meta { font-size: 14.5px; font-weight: 500; margin-bottom: 10px; }
.bcard h3 { font-size: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--linea); }
.bcard-f { margin-top: 22px; }
.bcard .go { position: static; display: inline-grid; width: 64px; height: 56px; }

/* footer */
.foot { background: #08111E; color: #A8A8A8; padding-top: 110px; }
.sub { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; background: #14233A; border-radius: 18px; padding: 44px 50px; }
.sub h3 { color: #fff; font-size: 40px; font-weight: 500; text-transform: uppercase; }
.sub h3 em { color: var(--acento); font-weight: 700; }
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 12px; background: #000; border: 1px solid #333; color: #fff; padding: 10px 24px 10px 18px; border-radius: 10px; }
.store i { font-size: 30px; }
.store small { display: block; font-size: 11px; opacity: .7; line-height: 1.1; }
.store b { font-size: 19px; line-height: 1.1; font-family: var(--f-t); }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.1fr .8fr; gap: 56px; padding: 70px 0; }
.foot-grid > * { min-width: 0; }
.foot .logo-f { display: inline-flex; clip-path: none; background: none; padding: 0; }
.foot .logo-f .logo-in { color: #fff; } .foot .logo-f .logo-in i { color: var(--acento); } .foot .logo-f .logo-in b em { color: var(--acento); }
.foot-p { margin: 18px 0 22px; max-width: 340px; }
.foot-loc { display: flex; gap: 14px; align-items: center; color: #fff; font-family: var(--f-t); font-size: 22px; font-weight: 600; }
.foot-loc i { font-size: 32px; color: var(--acento); }
.foot-loc small { display: block; font-family: var(--f-b); font-size: 13px; color: var(--acento); font-weight: 500; }
.foot h4 { color: #fff; font-size: 24px; position: relative; padding-bottom: 16px; margin-bottom: 24px; }
.foot h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: #222; }
.foot h4::before { content: ""; position: absolute; left: 0; bottom: 0; width: 80px; height: 3px; background: var(--acento); z-index: 1; }
.fl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.foot nav a { display: block; padding: 6px 0; font-weight: 500; transition: color .15s, padding .15s; }
.foot nav a::before { content: "\F135"; font-family: 'bootstrap-icons'; color: var(--acento); margin-right: 12px; font-size: 14px; }
.foot nav a:hover { color: #fff; padding-left: 4px; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gal img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 2px solid var(--acento); border-radius: 6px; }
.foot-bot { background: #000; border-top: 1px solid #14213A; padding: 26px 0; font-size: 15px; }
.fb-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-bot b { color: var(--acento); font-weight: 500; }
.dberr { margin: 0 20px 20px; padding: 12px; background: #0B1220; color: #F1F5F9; overflow: auto; font-size: 12px; }

/* animación de entrada */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv { opacity: 1; transform: none; transition: none; } .status i { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav a { padding: 8px 9px; font-size: 16.5px; }
  .why-grid { grid-template-columns: 1fr 300px 1fr; gap: 24px; }
}
@media (max-width: 1020px) {
  .hero-in, .about, .why-grid, .split { grid-template-columns: 1fr; }
  .login { max-width: 460px; }
  .about-img { min-height: 560px; max-width: 560px; }
  .cards3, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .cnt-grid { grid-template-columns: repeat(2, 1fr); row-gap: 76px; }
  .why-img { order: -1; max-width: 340px; margin: 0 auto; }
  .why-col.l .wf { text-align: left; justify-content: flex-start; flex-direction: row-reverse; }
  .split-img { min-height: 340px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .head-r .btn-main { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: #fff; padding: 8px 24px 20px; display: none; box-shadow: 0 14px 20px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--linea); }
  .nav-m { display: block; margin-top: 14px; background: var(--acento); color: #fff !important; text-align: center; border: 0 !important; }
  .head { height: 84px; }
}
@media (max-width: 640px) {
  .topbar-l span:not(.status), .topbar-l .sep { display: none; }
  .topbar-r { padding-left: 48px !important; padding-right: 16px !important; font-size: 13px; }
  .topbar { height: 48px; }
  .logo { padding: 0 44px 0 16px; } .logo-in b { font-size: 24px; } .logo-in i { font-size: 26px; }
  .hero { padding: 64px 0 100px; }
  .sec { padding: 76px 0; }
  .cards3, .cat-grid, .team, .cnt-grid { grid-template-columns: 1fr; }
  .about-img { min-height: 440px; }
  .f1 { height: 330px; top: 20px; padding: 14px; } .f2 { height: 280px; top: 150px; padding: 14px; }
  .about-stat span { font-size: 46px; }
  .tabs3 { flex-direction: column; }
  .sub { padding: 30px 22px; } .sub h3 { font-size: 30px; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-txt { padding: 56px 24px; }
}

/* eyebrows sobre fondos oscuros: verde claro para contraste */
.sec-dark .eyebrow { color: #5FE0B4; }
.sec-dark .eyebrow::before, .sec-dark .eb-c::after { background: #5FE0B4; }
.eb-w::before { background: #5FE0B4; }
.split-txt h2 em, .sub h3 em { color: #5FE0B4; }
.foot .logo-f .logo-in i, .foot .logo-f .logo-in b em, .foot-loc i, .foot-loc small, .foot-bot b { color: #5FE0B4; }
