:root {
  --bg: #080b0f;
  --bg2: #10151c;
  --panel: #10161d;
  --panel2: #161d26;
  --red: #e50914;
  --red2: #ff2530;
  --text: #f4f7fb;
  --muted: #aab4c0;
  --line: #28313d;
  --ok: #20c997;
  --warn: #f5b301;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #06080b, #10151c);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ==============================
   NAVBAR GARAGE LABRIN
============================== */

.site-header {
  width: 100%;
  background: linear-gradient(90deg, #070a0f 0%, #0b0f14 55%, #111820 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow-x: clip;
}

.nav-inner {
  width: 100%;
  max-width: 1520px;
  min-height: 94px;
  margin: 0 auto;
  padding: 14px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.brand-card {
  width: 180px;
  height: 62px;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 16px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-left: auto;
  min-width: 0;
}

.main-nav a {
  color: #f4f7fb;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.92;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: var(--red);
  opacity: 1;
}

.main-nav .nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 15px 20px;
  border-radius: 14px;
  opacity: 1;
  box-shadow: 0 10px 24px rgba(229, 9, 20, 0.25);
}

.main-nav .nav-cta:hover {
  background: var(--red2);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 22px;
  cursor: pointer;
}

/* ==============================
   BOTONES GENERALES
============================== */

.btn-primary,
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), #9d0610);
  padding: 12px 16px;
  border-radius: 14px;
  border: 0;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(229, 9, 20, 0.28);
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-nav:hover {
  background: linear-gradient(135deg, var(--red2), var(--red));
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #202a35;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--red);
  background: #263241;
}

/* ==============================
   HERO
============================== */

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: 70px 6%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.96), rgba(8, 11, 15, 0.66)),
    url("../img/fachada-garage-labrin.webp") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 25px var(--red);
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--red2);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  margin: 15px 0;
  text-transform: uppercase;
}

.hero p {
  color: #d6dde5;
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 25px;
}

/* ==============================
   SECCIONES Y GRIDS
============================== */

.section {
  padding: 70px 6%;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 26px;
}

.section-title h2 {
  font-size: 36px;
  margin: 0;
}

.section-title p {
  color: var(--muted);
  max-width: 670px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ==============================
   TARJETAS
============================== */

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.55;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.35);
  display: grid;
  place-items: center;
  color: var(--red2);
  font-weight: 900;
  margin-bottom: 15px;
}

.badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.12);
  color: #ff6570;
  border: 1px solid rgba(229, 9, 20, 0.35);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==============================
   FORMULARIOS
============================== */

.form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  color: #d5dce5;
  margin-bottom: 8px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0d1218;
  color: var(--white);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.16);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ==============================
   CALENDARIO / HORAS
============================== */

.calendar-box {
  background: #0d1218;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.slot {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #151d27;
  color: var(--white);
  cursor: pointer;
  text-align: center;
}

.slot.available:hover,
.slot.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.18);
}

.slot.busy {
  opacity: 0.38;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ==============================
   ALERTAS
============================== */

.alert {
  padding: 14px 16px;
  border-radius: 16px;
  margin: 15px 0;
}

.alert.ok {
  background: rgba(32, 201, 151, 0.13);
  border: 1px solid rgba(32, 201, 151, 0.35);
}

.alert.err {
  background: rgba(229, 9, 20, 0.13);
  border: 1px solid rgba(229, 9, 20, 0.35);
}

/* ==============================
   LOGIN
============================== */

.login-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 60px 6%;
}

.login-card {
  width: min(470px, 100%);
}

/* ==============================
   FOOTER GARAGE LABRIN
============================== */

.site-footer {
  width: 100%;
  background: #070a0f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  margin-top: 64px;
}

.footer-inner {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-card {
  width: 140px;
  height: 50px;
  background: var(--white);
  border-radius: 13px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--red);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.footer-brand-text strong {
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
}

.footer-brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--red);
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 980px) {
  .nav-inner {
    min-height: 84px;
    padding: 12px 18px;
  }

  .brand-card {
    width: 150px;
    height: 54px;
    border-radius: 13px;
    padding: 7px 11px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    width: 100%;
    background: #080b10;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
  }

  .main-nav .nav-cta {
    width: fit-content;
    padding: 14px 18px;
  }

  .hero {
    min-height: auto;
    padding: 70px 6%;
  }

  .section-title {
    display: block;
  }

  .grid-3,
  .grid-2,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 0 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .brand-area {
    gap: 10px;
  }

  .brand-card {
    width: 118px;
    height: 44px;
    padding: 5px 8px;
    border-radius: 11px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text small {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .nav-inner {
    min-height: 72px;
  }

  .main-nav {
    top: 72px;
  }

  .section {
    padding: 48px 5%;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-logo-card {
    width: 120px;
    height: 44px;
  }
}
/* ==============================
   SEGUIMIENTO CLIENTE
============================== */

.seguimiento-search-card {
  margin-bottom: 24px;
}

.seguimiento-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.seguimiento-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 420px;
  gap: 24px;
  align-items: start;
}

.seguimiento-main-card,
.seguimiento-side-card {
  min-width: 0;
}

.seguimiento-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.seguimiento-header h2 {
  margin: 12px 0 0;
}

.seguimiento-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.seguimiento-info-grid div {
  background: #0d1218;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.seguimiento-info-grid strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.seguimiento-info-grid span {
  display: block;
  color: var(--white);
  font-weight: 800;
}

.seguimiento-box {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.seguimiento-box h3,
.seguimiento-side-card h3 {
  margin-top: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 9, 20, 0.13);
  color: #ff6570;
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-large {
  padding: 10px 14px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  background: #0d1218;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.timeline-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
}

.timeline-item p {
  margin: 0 0 8px;
  color: #d6dde5;
}

.timeline-item small {
  color: var(--muted);
}

.seguimiento-fotos {
  display: grid;
  gap: 14px;
}

.seguimiento-fotos img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .seguimiento-layout {
    grid-template-columns: 1fr;
  }

  .seguimiento-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .seguimiento-form {
    grid-template-columns: 1fr;
  }

  .seguimiento-info-grid {
    grid-template-columns: 1fr;
  }

  .seguimiento-header {
    display: block;
  }

  .status-large {
    margin-top: 14px;
  }
}