/* === BASE VARIABLES === */
:root {
  --bg: #0b0f0c;            /* negro con tono verde */
  --card: #121714;          /* gris verdoso oscuro */
  --border: #1f2622;        /* borde tenue verde gris */
  --text: #e9f1ec;          /* texto claro */
  --muted: #a1b3aa;         /* texto secundario */
  --accent: #17b26a;        /* verde acento */
  --accent-light: #42e697;  /* verde brillante */
  --radius: 20px;
  --shadow: 0 8px 24px rgba(0,0,0,0.6);
  --transition: all 0.25s ease-in-out;
}

/* === RESET === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at 20% 30%, rgba(23,178,106,0.05), transparent),
              radial-gradient(circle at 80% 70%, rgba(23,178,106,0.07), transparent),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* === HEADER === */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,15,11,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

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

.logo {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #08140b; font-weight: 800;
  box-shadow: 0 0 14px rgba(23,178,106,0.4);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--accent-light);
}

/* === BUTTONS === */
.btn {
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(180deg, #1a1f1c, #0e120f);
  color: var(--text);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.05);
  transition: var(--transition);
}
.btn:hover {
  background: linear-gradient(180deg, #202720, #111411);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  color: #0a100a; border: none;
}
.btn-primary:hover { filter: brightness(1.1); }

/* === HERO === */
.hero {
  padding: 80px 0 40px;
  text-align: center;
  animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.2;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--accent-light), #e9f1ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === CARD === */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 30px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* === FORM === */
.field {
  display: grid; gap: 6px; margin-bottom: 12px;
}
.field label {
  font-size: 14px; color: var(--muted); font-weight: 500;
}
.field input,
.field select,
.field textarea {
  background: #0d100e;
  color: var(--text);
  border: 1px solid #1f2622;
  border-radius: 14px;
  padding: 12px;
  outline: none;
  transition: var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(23,178,106,0.3);
}
.field textarea { resize: none; }

.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* === MODULES === */
.module-options {
  display: flex; flex-wrap: wrap;
  gap: 18px; margin-top: 12px;
  justify-content: center;
}
.module {
  flex: 1 1 120px; text-align: center;
  padding: 18px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: linear-gradient(180deg, #121812, #0a0f0a);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: inset 0 0 10px rgba(23,178,106,0.1);
}
.module img {
  width: 46px; height: 46px;
  margin-bottom: 8px;
  filter: grayscale(100%) brightness(0.9);
}
.module:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}
.module.active {
  border-color: var(--accent-light);
  background: linear-gradient(180deg, #162016, #0b100b);
  box-shadow: 0 0 14px rgba(23,178,106,0.3);
}

/* === TOTAL === */
#total {
  font-weight: 600;
  text-align: center;
  color: var(--accent-light);
  margin: 14px 0;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
}

/* === FOOTER === */
footer {
  padding: 40px 0 60px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: #0e120f;
}

/* === WHATSAPP FLOAT === */
.wa-float {
  position: fixed;
  right: 20px; bottom: 22px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #08140b;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 0 20px rgba(23,178,106,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(23,178,106,0.6);
}

/* === RESPONSIVE === */
@media (max-width: 720px) {
  .hero h1 { font-size: 1.9rem; }
  .btn { width: 100%; }
  .module-options { flex-direction: column; align-items: center; }
}
