/* =========================
   PRELIM — STYLES LIMPIOS (final)
   ========================= */

/* Variables */
:root {
  --verde: #158443;
  --verde-claro: #19B56C;
  --gris-texto: #333;
  --blanco: #fff;
}

/* Resets básicos */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Base */
body {
  margin: 0;
  background: #fff;
  color: var(--gris-texto);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

h1,
h2,
.btn {
  font-family: 'Poppins', 'Inter', sans-serif;
}

/* Header / nav */
header {
  position: relative;
  top: 0;
  z-index: 50;
  background: #fff;
  color: var(--verde);
  padding: 10px 24px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.logo img {
  max-height: 192px;
  height: auto;
}

@media (max-width:600px) {
  .logo img {
    max-height: 72px;
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav li {
  display: inline;
}

nav a {
  color: var(--verde);
  text-decoration: none;
  font-weight: 700;
}

nav a:hover {
  text-decoration: underline;
}

/* Secciones */
section {
  padding: 40px 24px;
  max-width: 1200px;
  margin: auto;
}

h1,
h2 {
  color: var(--verde);
}

/* HERO */
.hero {
  position: relative;
}

.hero--plain {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  min-height: 48vh;
  display: grid;
  place-items: center;
}

.hero--plain .hero__content {
  color: #222;
  text-align: center;
  padding: 28px;
  max-width: 960px;
}

.hero__content h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.1;
}

.hero__content p {
  margin: 0 0 18px;
  font-size: clamp(16px, 2.2vw, 20px);
  opacity: .95;
}

.texto-verde {
  color: var(--verde-claro);
}

/* Botones */
.hero__cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .15s, box-shadow .15s, background-color .2s, color .2s, border-color .2s;
  cursor: pointer;
}

.btn--primary {
  background: var(--verde);
  color: #fff;
  border: 2px solid var(--verde);
}

.btn--primary:hover {
  background: var(--verde-claro);
  border-color: var(--verde-claro);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--verde);
  border: 2px solid var(--verde);
}

.btn--ghost-dark:hover {
  background: var(--verde);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

/* Productos */
#productos h2 {
  text-align: center;
  margin-bottom: 24px;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .10);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--gris-texto);
}

.card p {
  margin: 0 0 16px;
  color: #666;
}

.card-link {
  color: var(--verde);
  font-weight: 700;
  text-decoration: none;
}

.card-link:hover {
  color: var(--verde-claro);
}

/* Secciones sobrias */
.seccion-sobria {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  padding: 32px 28px;
  margin-top: 20px;
}

.seccion-sobria h2 {
  text-align: center;
  margin: 0 0 12px;
}

.seccion-sobria .lead {
  text-align: center;
  font-size: 1.1rem;
  color: #444;
  margin: 0 auto 18px;
  max-width: 900px;
}

/* Lista check */
.lista-check {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 18px;
  margin: 18px auto 6px;
  max-width: 900px;
}

.lista-check li {
  list-style: none;
  color: #555;
}

.lista-check li::before {
  content: "✔";
  color: var(--verde);
  margin-right: 8px;
  font-weight: 700;
}

/* Contacto */
.contacto-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.contacto-grid--2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

@media (max-width:960px) {

  .contacto-grid,
  .contacto-grid--2 {
    grid-template-columns: 1fr;
  }
}

.contacto-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px 20px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
  margin: 10px 0;
}

.contacto-item img {
  width: 28px;
  height: 28px;
}

.iconos-contacto {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.iconos-contacto img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform .25s;
}

.iconos-contacto img:hover {
  transform: scale(1.08);
}

/* Botón grande WhatsApp */
.btn-wapp {
  display: inline-block;
  margin-top: 10px;
  background: var(--verde);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--verde);
}

.btn-wapp:hover {
  background: var(--verde-claro);
  border-color: var(--verde-claro);
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 40px;
}

/* Responsive */
@media (max-width:900px) {
  .productos-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lista-check {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:600px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 24px 16px;
  }
}

/* Accesibilidad */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(25, 181, 108, .6);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ==== Formulario ==== */
.form-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.form-card .row {
  margin-bottom: 14px;
}

.form-card .row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width:600px) {
  .form-card .row.two {
    grid-template-columns: 1fr;
  }
}

.form-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2b2b2b;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}

.form-card textarea {
  resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(25, 181, 108, .15);
}

.form-card .check input {
  margin-right: 8px;
}

.form-card .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form-card .nota {
  margin: 6px 2px 0;
  font-size: 12px;
  color: #777;
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Invalid visual */
.is-invalid,
.is-invalid input,
.is-invalid select,
.is-invalid textarea {
  outline: 2px solid rgba(255, 0, 0, .35);
  border-color: rgba(255, 0, 0, .35);
}

.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 0, 0, .15);
}

/* Toast */
.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999;
  font-size: 14px;
}

.toast.ok {
  background: #158443;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}
/* === Pie corporativo PRELIM === */
.footer-prelim {
  background: var(--verde);
  color: #fff;
  text-align: center;
  padding: 32px 16px;
  font-size: 15px;
  line-height: 1.6;
}
.footer-prelim p { margin: 4px 0; }
.footer-info {
  margin-bottom: 10px;
}
.footer-copy {
  font-size: 13px;
  opacity: 0.85;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 8px;
}
