/* styles.css */
/* Variables de marca */
:root {
  --brand-blue: #010066;      /* Azul ARD */
  --brand-red: #e53935;       /* Calor/flujo */
  --brand-dark: #0f1b2a;
  --text: #2b2b2b;
  --muted: #6c7a89;
  --bg: #f6f8fb;
  --card: #ffffff;
  --accent: #18a0fb;
}

/* Reset básico y tipografía */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

/* Header y navegación */
header {
  background: linear-gradient(135deg, var(--brand-blue), #0e93d4);
  color: #fff;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
header .logo {
  display: block;
  max-width: 220px;
  width: 40vw;
  min-width: 160px;
  margin: 0 auto 0.5rem;
}
header h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.2px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin: 0.5rem 0 0;
  flex-wrap: wrap;
  justify-content: center;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
nav a:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

/* Secciones */
main { padding: 1rem; }
section {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(13, 35, 67, 0.08);
  padding: 1.25rem;
  margin: 1rem auto;
  max-width: 1100px;
}
section h2 {
  margin-top: 0;
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  color: var(--brand-dark);
}

/* Banner de inauguración */
.banner {
  width: 100%;
  border-radius: 14px;
  margin-top: 0.75rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Lista de servicios */
#servicios ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}
#servicios li {
  background: #f1f7ff;
  border: 1px solid #e0efff;
  border-radius: 12px;
  padding: 0.85rem;
  font-weight: 600;
}
.servicio-img {
  width: 100%;
  max-width: 560px;
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 12px;
}

/* Marcas y galería de productos */
.marcas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-items: center;
}
.marcas img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: inset 0 0 0 1px #eef3f8;
}

/* Contacto */
#contacto p {
  font-size: 1rem;
  color: var(--brand-dark);
}
.cta {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 0.5rem;
  box-shadow: 0 10px 20px rgba(229,57,53,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(229,57,53,0.28); }

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  color: #fff;
  background: var(--brand-dark);
}

/* Accesibilidad y utilidades */
img { height: auto; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hidden { position: absolute !important; left: -9999px !important; }

/* Responsive ajustes */
@media (min-width: 768px) {
  header {
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
  }
  header .logo { margin: 0; }
  header h1 { text-align: left; }
  nav ul { justify-content: flex-end; }
}
