/* =========================================================
   🎨 VARIABLES GLOBALES
   ========================================================= */
:root {
  --text-main: #1A1A1A;
  --accent: #00D26A;
  --muted: #666666;
  --bg: #F9FAFB;

  /* Repetidas pero necesarias por compatibilidad */
  --green-konfia: #00D26A;
}

/* =========================================================
   🔧 RESETEO Y BASE GLOBAL
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*, ::after, ::before {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

audio,
canvas,
embed,
iframe,
img,
object,
svg,
video {
  display: block;
  vertical-align: middle;
}

blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
  margin: 0;
}

/* =========================================================
   🧩 CONTENEDORES Y ESTRUCTURA
   ========================================================= */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.max-w-5xl {
    max-width: 64rem;
}
.max-w-2xl {
  max-width: 42rem;
  margin: 0 auto;
}

/* =========================================================
   🧭 UTILIDADES DE ESPACIADO Y LAYOUT
   ========================================================= */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }

/* =========================================================
   🧱 FLEX Y GRID
   ========================================================= */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid { display: grid; }
.md-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* =========================================================
   ✨ TIPOGRAFÍA Y COLORES
   ========================================================= */
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.leading-tight { line-height: 1.25; }

.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.md\:text-5xl { font-size: 3rem; }

.text-white { color: rgb(255 255 255 / 1); }
.text-gray-500 { color: rgb(107 114 128 / 1); }
.text-gray-600 { color: rgb(75 85 99 / 1); }
.text-green-500 { color: rgb(34 197 94 / 1); }

/* =========================================================
   🎛️ BOTONES Y LINKS
   ========================================================= */
[role="button"],
button {
  cursor: pointer;
}

button#menuBtn {
    color: darkorange;
}

button,
input:where([type="button"]),
input:where([type="reset"]),
input:where([type="submit"]) {
  appearance: button;
  background-color: transparent;
  background-image: none;
}

button {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

/* =========================================================
   🪟 BLOQUES Y COMPONENTES
   ========================================================= */

/* Header */
header {
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.05) 0 4px 10px;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .max-w-5xl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

/* Cards */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.04) 0 6px 18px;
}
.card-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
  display: block;
}
.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-text {
  color: rgb(75, 85, 99);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.04) 0 4px 12px;
}
.faq-item summary {
  font-weight: 600;
}
.faq-item p {
  margin-top: 8px;
  color: rgb(75, 85, 99);
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* =========================================================
   🎨 COLORES, FONDOS Y BORDES
   ========================================================= */
.bg-accent {
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  display: inline-block;
}

.bg-white {
  background: #fff;
}

.bg-\[\#00D26A\] {
  background-color: rgb(0 210 106 / 1);
}

.border {
  border: 1px solid rgb(229, 231, 235);
}
.border-t {
  border-top-width: 1px;
}

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 12px; }

.shadow {
  box-shadow: rgba(0, 0, 0, 0.08) 0 6px 18px;
}
.shadow-sm {
  box-shadow: rgba(0, 0, 0, 0.06) 0 4px 12px;
}

/* =========================================================
   📦 FOOTER
   ========================================================= */
footer {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
}
footer > div {
  width: 100%;
}

/* =========================================================
   📱 MEDIA QUERIES
   ========================================================= */

/* --- TABLET & UP --- */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- MOBILE ADAPTATION --- */
@media (max-width: 900px) {
  .md-grid-cols-3 {
    grid-template-columns: 1fr;
  }
  header .max-w-5xl {
    flex-direction: column;
    gap: 10px;
  }
}
