/* ============================
   Sistema de diseño
   ============================ */
:root {
  --grafito: #1B2127;
  --acero: #3E5468;
  --piedra: #EDE8DF;
  --carton: #FAF7F2;
  --naranja: #E65100;
  --naranja-hover: #C24400;
  --oxido: #7A3624;
  --texto: #23262B;
  --texto-suave: #5B6570;
  --borde: #D9D3C8;

  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;
}

/* Reseteo */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background-color: var(--piedra);
  color: var(--texto);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

/* Accesibilidad: foco visible y skip-link */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--naranja);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--naranja);
  color: #fff;
  padding: 0.8rem 1.2rem;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ============================
   Navegación
   ============================ */
.navbar {
  background-color: var(--grafito);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background-color: var(--naranja);
  color: #FFFFFF;
}
.btn-primary:hover { background-color: var(--naranja-hover); }

.btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  padding: 0.8rem 0.4rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-secondary:hover { color: #CBD5E1; }

.btn-outline {
  border: 1.5px solid var(--naranja);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn-outline:hover { background-color: var(--naranja); }

/* ============================
   Hero
   ============================ */
.hero {
  background-color: var(--grafito);
  color: #FFFFFF;
  padding: 4.5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  animation: subir 0.6s ease-out both;
}

@keyframes subir {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  max-width: 20ch;
}

.hero p {
  font-size: 1.1rem;
  color: #CBD5E1;
  max-width: 48ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Datos de la cuadrilla */
.crew-plate {
  padding-left: 1.8rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.crew-plate-list {
  list-style: none;
}

.crew-plate-list li {
  padding: 1.1rem 0;
}

.plate-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFFFFF;
}

.plate-label {
  display: block;
  font-size: 0.85rem;
  color: #94A3B8;
  margin-top: 0.15rem;
}

/* ============================
   Nosotros
   ============================ */
.about-section {
  background-color: var(--carton);
  padding: 5rem 0;
  border-bottom: 1px solid var(--borde);
}

.about-container {
  max-width: 720px;
}

.about-section h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--grafito);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.6rem;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--texto-suave);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.about-text strong { color: var(--grafito); }

.about-text blockquote {
  margin: 2rem 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--grafito);
  line-height: 1.6;
}

/* ============================
   Servicios (lista tipo orden de trabajo)
   ============================ */
.services-section { padding: 5rem 0; }

.section-header { margin-bottom: 2.8rem; max-width: 640px; }

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--grafito);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p { color: var(--texto-suave); }

.services-list {
  border-top: 1px solid var(--borde);
}

.service-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 1.8rem;
  align-items: center;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--borde);
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--naranja);
}

.service-icon svg { width: 32px; height: 32px; }

.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--grafito);
  margin-bottom: 0.3rem;
}

.service-body p {
  font-size: 0.95rem;
  color: var(--texto-suave);
}

.card-link {
  color: var(--naranja);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.card-link:hover { text-decoration: underline; }

/* ============================
   Características
   ============================ */
.features-section {
  background-color: var(--carton);
  padding: 5rem 0;
  border-bottom: 1px solid var(--borde);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.4rem;
}

.feature-item { padding-top: 1.4rem; border-top: 1px solid var(--borde); }

.feature-item h4 {
  font-family: var(--font-display);
  color: var(--grafito);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-item p { color: var(--texto-suave); font-size: 0.95rem; }

/* ============================
   Footer
   ============================ */
footer {
  background-color: var(--grafito);
  color: #94A3B8;
  padding: 2.2rem 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  color: #FFB74D;
  text-decoration: none;
  font-weight: 600;
}

/* ============================
   Botón flotante WhatsApp
   ============================ */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  z-index: 999;
  transition: transform 0.2s ease;
}

.whatsapp-float svg { width: 28px; height: 28px; }

.whatsapp-float:hover { transform: scale(1.08); }

/* ============================
   Página de Términos y Condiciones
   ============================ */
.legal-section {
  padding: 4rem 0 5rem;
}

.legal-container {
  max-width: 720px;
}

.legal-section h1 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--grafito);
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--grafito);
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
}

.legal-section p {
  font-size: 1rem;
  color: var(--texto-suave);
  line-height: 1.75;
  margin-bottom: 0.8rem;
}

.legal-updated {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--borde);
}

/* ============================
   Responsividad
   ============================ */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 2.3rem; max-width: none; }
  .service-row {
    grid-template-columns: 48px 1fr;
  }
  .card-link {
    grid-column: 2 / 3;
  }
}

@media (max-width: 480px) {
  .footer-content { flex-direction: column; text-align: center; }
}