/* ===== ASTRO-DOSE — estilos base ===== */
:root {
  --blue: #1a3fd6;
  --blue-dark: #0f1f4d;
  --red: #e0202c;
  --gray-bg: #f4f6fb;
  --gray-mid: #e7eaf3;
  --text: #23283a;
  --text-light: #5a6072;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(15, 31, 77, 0.08);
  --shadow-hover: 0 10px 28px rgba(15, 31, 77, 0.14);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; font-weight: 800; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section-alt { background: var(--gray-bg); }
.section-dark {
  background: linear-gradient(135deg, var(--blue-dark), #16277a);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .5em;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--blue-dark);
}
.section-lead {
  max-width: 720px;
  color: var(--text-light);
  font-size: 1.05rem;
}
.btn {
  display: inline-block;
  padding: .85em 1.8em;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

/* ===== Header ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(15,31,77,.06);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 46px; width: auto; }
.brand-tagline {
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--blue-dark);
  font-size: .95rem;
  text-transform: uppercase;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--blue-dark);
  transition: background .15s ease, color .15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--blue);
  color: var(--white);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--blue-dark);
  border-radius: 2px;
}

/* ===== Hero (Inicio) ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 65%, #2b57ff 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-slides { position: relative; min-height: 460px; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
}
.hero-slide.active { display: flex; }
.hero-slide-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  width: 100%;
}
.hero-slide h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  color: var(--white);
}
.hero-slide p { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  max-height: 300px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
}
.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-bottom: 22px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active { background: var(--white); }

/* ===== Cards ===== */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 20px 22px; }
.card-body h3 { font-size: 1.1rem; color: var(--blue-dark); }
.card-body p { color: var(--text-light); font-size: .95rem; margin-bottom: 0; }

/* ===== Bloque alterno texto/imagen (Que te ofrecemos) ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--gray-mid);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-text h3 { color: var(--blue-dark); font-size: 1.35rem; }
.feature-text p { color: var(--text-light); }

/* ===== Beneficios (producto) tarjetas ===== */
.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.benefit-card.dark {
  background: linear-gradient(135deg, var(--blue), #2b4dff);
  color: var(--white);
}
.benefit-card.dark p { color: rgba(255,255,255,.9); }
.benefit-card h3 {
  color: var(--blue-dark);
  font-size: 1.1rem;
  margin-bottom: .8em;
}
.benefit-card.dark h3 { color: var(--white); }
.benefit-card img { border-radius: 8px; margin-bottom: 14px; }
.benefit-card ul { padding-left: 1.1em; color: var(--text-light); }
.benefit-card.dark ul { color: rgba(255,255,255,.9); }

/* ===== Versiones producto ===== */
.version-card {
  text-align: center;
  background: linear-gradient(160deg, #eef2ff, #ffffff);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 24px;
}
.version-card img { margin: 0 auto 16px; max-height: 160px; }
.version-card h4 { color: var(--blue-dark); margin-bottom: .4em; }
.version-card p { color: var(--text-light); font-size: .92rem; margin: 0; }

/* ===== Industrias ===== */
.industria-card { text-align: center; }
.industria-card .card-body { text-align: left; }

/* ===== Formulario contacto ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 40px;
  align-items: start;
}
form.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  gap: 16px;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  font-family: inherit;
  font-size: .98rem;
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-status { font-weight: 600; }
.form-status.ok { color: #1a8a4a; }
.form-status.err { color: var(--red); }
.contact-aside {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-aside a { color: var(--blue); font-weight: 700; }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.85);
  padding: 26px 0;
  font-size: .9rem;
}
footer.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer.site-footer a { color: rgba(255,255,255,.85); }
footer.site-footer a:hover { color: var(--white); }

/* ===== Politica de ventas ===== */
.policy h2 { color: var(--blue-dark); font-size: 1.15rem; margin-top: 1.6em; }
.policy p { color: var(--text-light); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero-slide-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
}
@media (max-width: 720px) {
  nav.main-nav {
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--white);
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav ul { flex-direction: column; padding: 18px; gap: 4px; }
  nav.main-nav a { padding: 14px 18px; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}
