/* ============================================
   BioProtec4Car — Estilos
   Paleta: negro + dorado (logo) + ámbar brillante (acentos de texto/CTA)
   ============================================ */

:root {
  --black: #0a0a0a;
  --black-2: #131313;
  --black-3: #1c1c1c;
  --border: #2a2a2a;
  --white: #ffffff;
  --white-dim: #d9d9d9;
  --gray: #a3a3a3;

  /* dorado estructural (icono/escudo/bordes) — cercano al logo */
  --gold: #c9a24a;
  --gold-2: #9c7d33;

  /* ámbar brillante — para texto destacado y botones sobre negro */
  --amber: #f5a623;
  --amber-light: #ffc857;

  --radius: 10px;
  --max-width: 1180px;
  --section-pad: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  color: var(--amber);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

p { color: var(--white-dim); margin: 0 0 16px; }

.accent { color: var(--amber); }

.section {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-alt { background: var(--black-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--amber);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.25);
}
.btn-primary:hover { background: var(--amber-light); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--amber); }

.hero-actions,
.section-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Botón CTA dorado grande — fin de sección */
.cta-block {
  margin-top: 56px;
  text-align: center;
}

.cta-gold-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--amber-light), var(--amber));
  color: var(--black);
  padding: 18px 40px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.3;
}
.cta-gold-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(245, 166, 35, 0.4);
}
.cta-gold-btn .cta-line1 {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.cta-gold-btn .cta-line2 {
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 2px;
  color: var(--black);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.nav-logo img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--white-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--amber); }

.nav-cta {
  background: var(--amber);
  color: var(--black);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--amber-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 var(--section-pad);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 480px;
}

.hero-image img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hero-actions { justify-content: flex-start; }

/* ---------- Servicios ---------- */
.service-banner {
  background: var(--black-3);
  border: 1px solid var(--gold-2);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: center;
  margin-bottom: 28px;
  color: var(--amber);
  font-weight: 700;
}

.service-pricing {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.service-pricing p { margin: 0; color: var(--white); font-weight: 600; }

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-weight: 700;
  border: 1px solid var(--gold);
  padding: 10px 20px;
  border-radius: var(--radius);
}
.whatsapp-link:hover { background: var(--amber); color: var(--black); }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(245, 166, 35, 0.12);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.card p { margin: 0; font-size: 0.94rem; }

/* ---------- Galería ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); }
.gallery-grid img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ---------- Proceso ---------- */
.process-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- Alianzas ---------- */
.alliance-box {
  background: var(--black-2);
  border: 1px solid var(--gold-2);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Testimonio / Caso BYD ---------- */
.case-meta {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.case-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 28px 0 40px;
}

.case-stats div {
  color: var(--amber);
  font-weight: 700;
}

.case-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.case-columns h3 { color: var(--white); }

.case-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.case-photos img {
  border-radius: 8px;
  border: 1px solid var(--border);
  height: 140px;
  object-fit: cover;
  width: 100%;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-list a,
.contact-info-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
}

.contact-info-list .icon {
  color: var(--amber);
  font-size: 1.2rem;
}

.form-placeholder {
  border: 1px dashed var(--gold-2);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--gray);
  background: var(--black-2);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand img { height: 36px; width: auto; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a { color: var(--white-dim); font-size: 0.92rem; }
.footer-links a:hover { color: var(--amber); }

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
}
.footer-social a:hover { color: var(--amber); border-color: var(--gold); }

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  z-index: 200;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #ffffff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-actions { justify-content: center; text-align: center; }
  .hero { text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .case-columns { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --section-pad: 64px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black-2);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .service-pricing { flex-direction: column; align-items: flex-start; }
  .footer-top { flex-direction: column; }
}

/* Accesibilidad: foco visible */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
