/*
Theme Name: BuscaMiCoche
Description: Portada de BuscaMiCoche con acceso al panel y vistas de la aplicación.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: buscamicoche
*/

:root {
  color-scheme: light;
  --ink: #101d34;
  --muted: #516078;
  --night: #091526;
  --blue: #174bad;
  --mint: #a4f5d1;
  --line: #d8e1ec;
  --paper: #f7f9fc;
  --wrap: 1200px;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #3374ee; outline-offset: 5px; }
.wrap { width: min(var(--wrap), calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 1rem; left: 1rem; transform: translateY(-200%); background: white; padding: .75rem 1rem; }
.skip:focus { transform: translateY(0); }
.header { background: var(--night); color: #fff; border-bottom: 1px solid #ffffff1c; }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; text-decoration: none; font-size: 23px; font-weight: 750; letter-spacing: -.055em; }
.brand img { border-radius: 11px; }
.brand-dot { color: #a0c5ff; }
.header nav, .footer-inner nav { display: flex; gap: clamp(16px, 3vw, 38px); align-items: center; }
.header nav a, .footer-inner a:not(.brand) { color: #d5e0ef; font-size: .9rem; text-decoration: none; }
.header nav a:hover, .footer-inner a:hover { color: #fff; text-decoration: underline; text-underline-offset: .3em; }
.button { min-height: 49px; display: inline-flex; justify-content: center; align-items: center; gap: 13px; padding: 11px 17px; border: 1px solid transparent; border-radius: 9px; font-size: .91rem; font-weight: 720; text-decoration: none; transition: background .18s, border-color .18s; }
.button span { font-size: 1.12rem; line-height: 1; }
.button-outline { border-color: #ffffff62; color: #fff; background: #0a172840; }
.button-outline:hover { border-color: #fff; background: #ffffff14; }
.header-access { min-height: 43px; }
.hero { position: relative; isolation: isolate; color: #fff; background: #0b1c36; overflow: hidden; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg,#081424 2%,#091526ee 26%,#0b182a7a 56%,#0b182a15 85%), linear-gradient(0deg,#0a1427a8,transparent 35%), url("assets/carretera.webp") right 64% / cover no-repeat; }
.hero-inner { position: relative; min-height: 612px; display: grid; align-items: center; padding-block: 65px 84px; }
.hero-copy { max-width: 760px; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 19px; font-size: .74rem; font-weight: 780; letter-spacing: .15em; line-height: 1.4; color: var(--blue); }
.hero .eyebrow, .closing .eyebrow { color: var(--mint); }
.signal { display: inline-block; height: 8px; width: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px #a4f5d12b; margin: 0 4px; }
.hero h1, h2 { font-weight: 760; letter-spacing: -.068em; line-height: .99; margin: 0; }
.hero h1 { font-size: clamp(3.65rem, 7.1vw, 6.45rem); }
.hero h1 em { font-style: normal; color: #b5d2ff; }
.hero-copy > p:not(.eyebrow) { max-width: 520px; color: #e2eaf7; font-size: clamp(1.03rem, 1.55vw, 1.21rem); line-height: 1.62; margin: 24px 0 27px; }
.hero-caption { position: absolute; margin: 0; right: 0; bottom: 28px; display: flex; align-items: center; gap: 10px; color: #e6edf9; letter-spacing: .14em; font-weight: 700; font-size: .67rem; }
.hero-caption span { width: 26px; height: 1px; background: var(--mint); }
.hero-marker { position: absolute; right: 19%; top: 48%; width: 98px; height: 98px; display: grid; place-items: center; }
.hero-marker span { position: absolute; inset: 0; border: 1px solid #9cc6ff55; border-radius: 50%; }
.hero-marker span:nth-child(2) { inset: 12px; border-color: #9cc6ff8c; }
.hero-marker img { border-radius: 15px; box-shadow: 0 8px 28px #00113191; }
.section { padding-block: clamp(70px, 8vw, 113px); scroll-margin-top: 12px; }
h2 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.section-intro { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 28px; margin-bottom: 38px; }
.section-intro > p, .demo-copy > p:not(.eyebrow), .faq-list p { color: var(--muted); line-height: 1.65; }
.section-intro > p { max-width: 345px; margin: 0 0 3px; font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.feature-grid article { padding: 25px 23px 27px; background: var(--paper); }
.feature-icon { color: #2058be; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #e6eefc; }
.feature-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-grid h3 { margin: 16px 0 7px; font-size: 1.08rem; letter-spacing: -.02em; }
.feature-grid p { color: var(--muted); font-size: .93rem; line-height: 1.55; margin: 0; }
.demo-section { background: #eaf0f8; }
.demo-layout { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); gap: clamp(25px, 4vw, 65px); align-items: center; }
.demo-copy h2, .faq h2 { font-size: clamp(2.6rem, 4.3vw, 3.9rem); }
.demo-copy > p:not(.eyebrow) { margin: 18px 0; }
.view-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.view-buttons button { padding: 9px 12px; border-radius: 8px; border: 1px solid #b9c9df; background: #f8fbff; color: #173764; cursor: pointer; font-size: .86rem; font-weight: 700; }
.view-buttons button:hover { border-color: var(--blue); }
.view-buttons button[aria-pressed="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.dashboard { min-width: 0; overflow: hidden; border: 1px solid #c9d6e7; border-radius: 15px; background: #fff; box-shadow: 0 24px 55px -31px #22457575; }
.demo-image { aspect-ratio: 1920 / 855; background: #eaf0f8; }
.demo-image img { width: 100%; height: 100%; object-fit: contain; }
.dashboard-readout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px 12px; padding: 13px 17px; }
.dashboard-readout > div { display: grid; gap: 2px; }
.dashboard-readout strong { font-size: .87rem; }
.dashboard-readout div span { font-size: .79rem; color: var(--muted); }
.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(25px, 7vw, 105px); }
.faq-list details { border-block-start: 1px solid var(--line); }
.faq-list details:last-child { border-block-end: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 17px 0; font-size: 1.03rem; font-weight: 730; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--blue); font-size: 1.35rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0 28px 17px 0; }
.faq-list p a { color: var(--blue); }
.closing, footer { background: var(--night); color: #fff; }
.closing-inner { min-height: 215px; padding-block: 48px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.closing h2 { font-size: clamp(2.35rem, 4vw, 3.4rem); }
.header-actions { width: min(100%, 452px); flex-shrink: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.header-actions .button { min-height: 49px; padding: 7px 8px; gap: 7px; text-align: center; }
.button-store { background: #11233a; border-color: #ffffff40; color: #f2f6fd; }
.button-store svg { width: 25px; height: 25px; flex: 0 0 25px; }
.button-store .store-label { display: grid; gap: 3px; text-align: left; font-size: .93rem; line-height: 1.1; }
.store-label small { color: #b8c9df; font-size: .64rem; font-weight: 650; }
footer { border-top: 1px solid #ffffff24; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; min-height: 91px; padding-block: 22px; }
.footer-inner .brand { font-size: 20px; }
.legal-hero { padding-block: clamp(42px, 7vw, 82px); color: #fff; background: linear-gradient(115deg, var(--night) 32%, #153665); }
.legal-hero .eyebrow { color: var(--mint); }
.legal-hero h1 { margin: 0; font-size: clamp(2.85rem, 6vw, 5.25rem); line-height: 1; letter-spacing: -.06em; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 740px); gap: clamp(28px, 6vw, 90px); padding-block: clamp(35px, 6vw, 76px); }
.legal-nav { align-self: start; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.legal-nav a { display: block; padding: 10px; border-radius: 7px; text-decoration: none; color: var(--blue); font-weight: 670; font-size: .9rem; }
.legal-nav a:hover { text-decoration: underline; }
.legal-nav a[aria-current="page"] { background: #e6eefc; }
.legal-article { min-width: 0; font-size: 1rem; line-height: 1.68; overflow-wrap: anywhere; }
.legal-article h2 { font-size: clamp(1.38rem, 2.4vw, 1.8rem); line-height: 1.2; letter-spacing: -.035em; margin: 1.65em 0 .62em; }
.legal-article h2:first-child { margin-top: 0; }
.legal-article h3 { font-size: 1.1rem; line-height: 1.4; margin: 1.35em 0 .45em; }
.legal-article p { margin: 0 0 .9em; }
.legal-article ul { padding-left: 1.4em; }
.legal-article li { margin-bottom: .45em; }
.legal-article a { color: var(--blue); text-underline-offset: .15em; }
.legal-note { padding: 14px 17px; background: #eaf0f8; border-left: 3px solid #235ac0; border-radius: 0 7px 7px 0; color: #2a4164; font-size: .92rem; }
.legal-table { overflow-x: auto; margin-block: 1.3rem; }
.legal-table table { width: 100%; min-width: 580px; border-collapse: collapse; text-align: left; background: #fff; font-size: .9rem; line-height: 1.5; }
.legal-table caption { text-align: left; padding-bottom: 8px; font-weight: 750; }
.legal-table th, .legal-table td { padding: 11px; border: 1px solid var(--line); vertical-align: top; }
.legal-table thead { background: #e6eefc; }
.legal-table tbody th { font-weight: 650; }
@media (max-width: 1000px) {
  .wrap { width: min(var(--wrap), calc(100% - 64px)); }
  .header-inner { gap: 14px; }
  .header nav { gap: 18px; }
  .hero-inner { min-height: 560px; }
  .hero-marker { right: 12%; top: 52%; }
  .feature-grid article { padding-inline: 15px; }
  .demo-layout { grid-template-columns: 1fr; }
  .closing-inner { flex-direction: column; align-items: start; }
}
@media (max-width: 1100px) {
  .header-inner:has(.header-actions) { flex-wrap: wrap; padding-block: 12px; }
  .header-inner:has(.header-actions) nav { order: 3; width: 100%; border-top: 1px solid #ffffff24; padding-top: 9px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; padding: 13px 0 11px; }
  .header nav { order: 3; width: 100%; border-top: 1px solid #ffffff24; padding-top: 9px; gap: 19px; }
  .hero-inner { min-height: 580px; align-items: start; padding-block: 59px 165px; }
  .hero::before { background-position: center, center, 63% 65%; background-image: linear-gradient(180deg,#091526f2,#091526c2 45%,#09152622 78%),linear-gradient(0deg,#081424cc,transparent 27%),url("assets/carretera.webp"); }
  .hero-marker { right: 16%; top: auto; bottom: 56px; width: 75px; height: 75px; }
  .hero-marker img { width: 41px; border-radius: 11px; }
  .hero-caption { left: 0; right: auto; bottom: 21px; }
  .section-intro, .faq-layout { grid-template-columns: 1fr; }
  .section-intro { margin-bottom: 25px; gap: 16px; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-grid article { padding: 17px 12px 21px; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { display: flex; flex-wrap: wrap; gap: 2px 6px; padding: 8px; }
}
@media (max-width: 620px) {
  .header-actions { width: 100%; }
  .header-actions .button { padding-inline: 5px; gap: 4px; font-size: .8rem; }
  .button-store svg { width: 19px; height: 19px; flex-basis: 19px; }
  .button-store .store-label { font-size: .8rem; }
  .store-label small { font-size: .57rem; }
}
@media (max-width: 359px) {
  .header-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .header-inner { column-gap: 8px; }
  .brand { font-size: 20px; }
  .brand img { width: 33px; height: 33px; }
  .header-access { font-size: .75rem; gap: 7px; padding-inline: 8px; }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 3.5rem); }
  .hero-inner { min-height: 548px; }
  .dashboard-readout { padding-inline: 10px; }
  .footer-inner nav { gap: 13px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
