/* =============================================
   AUTOZKR — style.css
   Fuentes: Bebas Neue (títulos) + Barlow (cuerpo)
   Paleta: Negro · Gris · Plateado · Azules oscuros
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ── VARIABLES ── */
:root {
  --black:           #080a0e;
  --dark:            #0e1117;
  --surface:         #141820;
  --card-bg:         #1a2030;
  --border:          rgba(160, 185, 220, 0.13);
  --border-hover:    rgba(160, 185, 220, 0.30);
  --blue-deep:       #0d2847;
  --blue-mid:        #1a4a7a;
  --blue-accent:     #2d6fb5;
  --blue-glow:       #4a90d9;
  --silver:          #b8c8d8;
  --silver-light:    #d4e0ec;
  --white:           #eef2f7;
  --muted:           #6a7a8a;
  --grad-blue:       linear-gradient(135deg, #0d2847 0%, #1a4a7a 50%, #0d2847 100%);
  --grad-silver:     linear-gradient(135deg, #7a8a9a 0%, #b8c8d8 40%, #d4e0ec 60%, #8a9aaa 100%);
  --shadow-card:     0 4px 28px rgba(0, 15, 40, 0.55);
  --radius:          5px;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--white);
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 40px;
  background: var(--grad-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; }

/* ── HEADER & NAV ── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 10, 14, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 7px;
  background: var(--grad-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: default;
  user-select: none;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

nav ul li a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.25s ease;
}

nav ul li a:hover { color: var(--white); }

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 110px 32px 90px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 50% 110%, rgba(45, 111, 181, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-text h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 10vw, 96px);
  letter-spacing: 12px;
  line-height: 1;
  background: var(--grad-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--silver);
  font-weight: 300;
  letter-spacing: 1px;
}

/* ── SECCIONES GENERALES ── */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 32px;
}

/* Línea divisora entre secciones */
section + section {
  border-top: 1px solid var(--border);
}

/* ── CARDS ── */
.cards,
section > .card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

/* Cuando los cards están sueltos directamente en section */
section > .card { margin-top: 0; }

.card {
  background: var(--card-bg);
  width: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(45, 111, 181, 0.22);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img { transform: scale(1.04); }

.card-content {
  padding: 22px 20px;
  border-top: 1px solid var(--border);
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--white);
}

.card-content p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── BOTÓN ── */
.btn {
  display: inline-block;
  margin-top: 4px;
  padding: 11px 24px;
  background: var(--grad-blue);
  color: var(--silver-light);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #1a4a7a 0%, #2d6fb5 50%, #1a4a7a 100%);
  border-color: var(--blue-glow);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 217, 0.28);
}

/* ── FEATURES ── */
.features {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.feature-box {
  background: var(--card-bg);
  padding: 32px 26px;
  width: 250px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-box:hover {
  border-color: rgba(45, 111, 181, 0.38);
  transform: translateY(-5px);
}

.feature-box svg {
  width: 36px;
  height: 36px;
  fill: var(--blue-glow);
  margin: 0 auto 14px;
  display: block;
  opacity: 0.85;
}

.feature-box h3 {
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── FORMULARIO ── */
.formulario {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.formulario input,
.formulario textarea,
.formulario select {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.formulario select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236a7a8a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.formulario input::placeholder,
.formulario textarea::placeholder {
  color: var(--muted);
}

.formulario select option {
  background: var(--surface);
  color: var(--white);
}

.formulario input:focus,
.formulario textarea:focus,
.formulario select:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(45, 111, 181, 0.14);
}

.formulario textarea {
  resize: vertical;
  min-height: 130px;
}

.formulario button {
  width: 100%;
  padding: 14px;
  background: var(--grad-blue);
  color: var(--silver-light);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.formulario button:hover {
  background: linear-gradient(135deg, #1a4a7a 0%, #2d6fb5 50%, #1a4a7a 100%);
  border-color: var(--blue-glow);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(74, 144, 217, 0.28);
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 32px;
  margin-top: 0;
}

footer p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 16px 20px;
    gap: 12px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .hero { padding: 70px 20px 60px; }

  section { padding: 50px 20px; }

  .card { width: 100%; max-width: 340px; }

  .feature-box { width: 100%; max-width: 320px; }

  .formulario { padding: 28px 20px; }
}

section:has(.card) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: flex-start;
}

section:has(.card) h2 {
  width: 100%;
}
