/* =============================================
   COMPU AUTO BAJÍO — Estilos principales
   ============================================= */

:root {
  --blue: #0B3D91;
  --blue-neon: #00AEEF;
  --black: #111111;
  --red: #C1121F;
  --yellow: #FFD60A;
  --white: #FFFFFF;
  --orange: #FF7A00;

  --bg: #0a0a0c;
  --bg-elevated: #16161a;
  --bg-card: #1a1a20;
  --text: #e8e8ec;
  --text-muted: #9a9aa8;
  --border: rgba(0, 174, 239, 0.15);
  --glow: rgba(0, 174, 239, 0.25);

  --font-display: "Exo 2", sans-serif;
  --font-body: "Source Sans 3", sans-serif;

  --header-h: 72px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

img {
  width: 60%;
  display: flex;
  position: relative;
  left: 20%;
  border-radius: 5%;
}

a {
  color: var(--blue-neon);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--white);
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* ---- Botones ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, #0e4db0 100%);
  color: var(--white);
  border-color: rgba(0, 174, 239, 0.3);
  box-shadow: 0 4px 24px rgba(11, 61, 145, 0.4);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #0e4db0 0%, var(--blue-neon) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 174, 239, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--outline:hover {
  border-color: var(--blue-neon);
  color: var(--blue-neon);
  background: rgba(0, 174, 239, 0.08);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
}

.btn--full {
  width: 100%;
}

/* ---- Header / Nav ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 12, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.nav__logo:hover {
  color: var(--white);
}

.nav__logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--red), #8b0e18);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo {
  width: 40%;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(0, 174, 239, 0.1);
}

.nav__link--cta {
  margin-left: 0.5rem;
  background: var(--red);
  color: var(--white) !important;
}

.nav__link--cta:hover {
  background: #d41424;
  box-shadow: 0 4px 20px rgba(193, 18, 31, 0.4);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  background: var(--black);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero__glow--left {
  width: 500px;
  height: 500px;
  top: -10%;
  left: -10%;
  background: rgba(11, 61, 145, 0.35);
}

.hero__glow--right {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: -5%;
  background: rgba(255, 122, 0, 0.15);
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.25);
  border-radius: 100px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 0 60px rgba(0, 174, 239, 0.2);
  margin-bottom: 1.25rem;
}

.hero__title-accent {
  display: block;
  color: var(--red);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  text-shadow:
    2px 2px 0 var(--white),
    -1px -1px 0 rgba(255, 255, 255, 0.5),
    0 0 40px rgba(193, 18, 31, 0.5);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  display: grid;
  gap: 1rem;
}

.hero__card {
  padding: 1.25rem 1.5rem;
  background: rgba(26, 26, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.hero__card:hover {
  border-color: rgba(0, 174, 239, 0.4);
  transform: translateX(8px);
}

.hero__card--accent {
  border-color: rgba(255, 122, 0, 0.35);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.08), rgba(26, 26, 32, 0.8));
}

.hero__card--accent:hover {
  border-color: var(--orange);
  box-shadow: 0 0 30px rgba(255, 122, 0, 0.15);
}

.hero__card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  color: var(--blue-neon);
}

.hero__card--accent .hero__card-icon {
  color: var(--orange);
}

.hero__card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.hero__card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(0, 174, 239, 0.4);
  border-radius: 14px;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--blue-neon);
  border-radius: 2px;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* ---- Secciones ---- */

.section {
  padding: 6rem 0;
  background: var(--bg);
}

.section--dark {
  background: var(--black);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section__tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-neon);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.section__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Nosotros ---- */

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about__card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.about__card:hover {
  border-color: rgba(0, 174, 239, 0.35);
  transform: translateY(-4px);
}

.about__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 174, 239, 0.4);
  margin-bottom: 1rem;
  line-height: 1;
}

.about__card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.about__card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---- Servicios ---- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-neon));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 174, 239, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.3);
  border-radius: 100px;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--blue-neon);
}

.service-card--featured .service-card__icon {
  color: var(--red);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Productos / Catálogo ---- */

.products__intro {
  margin-bottom: 2.5rem;
}

.products__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px,380px));
  gap: 1.5rem;
  justify-content: center;
}

.products__highlight {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.products__highlight-icon {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--orange);
  margin-top: 0.35rem;
}

.products__highlight h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.products__highlight p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.catalog {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.catalog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(90deg, rgba(11, 61, 145, 0.2), transparent);
  border-bottom: 1px solid var(--border);
}

.catalog__header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.catalog__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.catalog__viewer {
  position: relative;
  min-height: 520px;
  background: #0d0d10;
}

.catalog__iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

.catalog__fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 520px;
  gap: 1rem;
}

.catalog__fallback.visible {
  display: flex;
}

.catalog__fallback-icon {
  width: 72px;
  height: 72px;
  color: var(--blue-neon);
  opacity: 0.6;
}

.catalog__fallback h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
}

.catalog__fallback p {
  max-width: 420px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.catalog__fallback code {
  padding: 0.15rem 0.45rem;
  background: rgba(0, 174, 239, 0.1);
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--blue-neon);
}

/* ---- Contacto ---- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.contact__item:hover {
  border-color: rgba(0, 174, 239, 0.3);
}

.contact__item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(11, 61, 145, 0.25);
  border-radius: 10px;
  color: var(--blue-neon);
}

.contact__item-icon svg {
  width: 22px;
  height: 22px;
}

.contact__item h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact__item p,
.contact__item a {
  font-size: 1rem;
  color: var(--white);
}

.contact__item a:hover {
  color: var(--blue-neon);
}

.contact__form {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact__form h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(154, 154, 168, 0.6);
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--blue-neon);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.form__note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---- Footer ---- */

.footer {
  padding: 3rem 0 2rem;
  background: var(--black);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
}

.footer__brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer__nav a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__nav a:hover {
  color: var(--blue-neon);
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(154, 154, 168, 0.6);
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    max-width: 400px;
    margin-inline: auto;
  }

  .about__grid,
  .products__highlights {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    background: rgba(10, 10, 12, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .catalog__iframe {
    height: 450px;
  }

  .catalog__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 0;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
