:root {
  --primary: #4eaa97;
  --primary-dark: #3a8b7b;
  --accent: #63c2a9;
  --bg: #ebf6f3;
  --text: #0a0f24;
  --muted: #5a6472;
  --border: #e2e7f3;
  --card: #ffffff;
  --orange: #ff8a00;
  --shadow: 0 20px 50px rgba(15, 91, 255, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}



body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(235, 246, 243, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-weight: 800;
}

.brand-name span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  justify-self: center;
  font-weight: 600;
  color: var(--muted);
}

.top-account {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  justify-self: end;
}

.trophy {
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
  
}

.button.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

.button.full {
  width: 100%;
}

.hero {
  background: var(--bg);
  padding-bottom: 5rem;
}

.hero-photo {
  width: 100%;
  background: var(--primary);
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  padding-top: 3rem;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-copy p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.hero-metrics strong {
  font-size: 1.5rem;
  display: block;
}


.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.section-heading p {
  color: var(--muted);
}

.comparator,
.benefits,
.steps,
.faq {
  padding: 4rem 0;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  background: #fff;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.filter label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.filter select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
}

.results {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .results {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}


.result-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(9, 17, 41, 0.08);
  display: grid;
  gap: 0.75rem;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tag {
  display: none;
}

@media (max-width: 768px) {
  .tag {
    display: inline-flex;
    background: rgba(78, 170, 151, 0.15);
    color: var(--primary);
    font-weight: 600;
    /* Pastilla más alargada */
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
  }
}

.result-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.result-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(78, 170, 151, 0.15);
  color: var(--primary-dark);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.result-footer {
  margin-top: 1rem;
}

.result-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
}

.stars {
  color: var(--primary);
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.result-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f7f5;
  color: var(--muted);
  font-weight: 600;
  /* Pastilla más alargada */
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  width: fit-content;
  min-height: 34px;
}

.result-choice span:first-child {
  font-size: 0.9rem;
}

.link {
  color: var(--primary);
}

.benefit-grid,
.faq-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.benefit-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.steps {
  background: #ffffff;
}

.steps-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.steps ol {
  display: grid;
  gap: 1.5rem;
  list-style: none;
}

.steps li {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.steps strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.cta {
  padding: 3rem 0;
}

.cta-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  color: #fff;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.faq-grid div {
  background: #fff;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.site-footer {
  background: #0a0f24;
  color: #fff;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-top: 0.5rem;
}

.newsletter {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.newsletter input {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: none;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links,
  .nav .button.ghost {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .top-account {
    display: none;
  }
}

@media (max-width: 600px) {
  .results {
    /* En móvil se ven 2 productos por fila */
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    padding: 1.5rem;
  }

  .cta-card {
    padding: 2rem;
  }
}

@media (max-width: 380px) {
  /* En pantallas muy estrechas vuelve a 1 columna para que no se aplaste */
  .results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .results-grid {
    display: grid;
    grid-template-columns: 1fr; /* SIEMPRE una columna */
    gap: 16px;
  }
  
}

.result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.result-info {
  flex: 1;
}

.result-cta {
  flex-shrink: 0;
}

.result-cta .btn {
  width: auto;
  padding: 14px 28px;
  border-radius: 999px; /* pastilla */
}

@media (max-width: 768px) {
  .result-card {
    flex-direction: column;
    align-items: stretch;
  }

  .result-cta .btn {
    width: 100%;
  }
}

.faq-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.faq-item {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  background: #fafafa;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}








