:root {
  --owner: #5C6BC0;
  --owner-dark: #3f4b9e;
  --pro: #00897B;
  --pro-dark: #00695C;
  --shelter: #EF6C00;
  --shelter-dark: #C35700;
  --bg: #10123a;
  --text: #f5f6fa;
  --text-muted: #c7cae8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(160deg, #12144a 0%, #1b1e5e 45%, #241c5e 100%);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 40px;
  overflow-x: hidden;
}

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(92, 107, 192, 0.35), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(0, 137, 123, 0.3), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(239, 108, 0, 0.25), transparent 45%);
}

.hero {
  text-align: center;
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-sub {
  margin-top: 14px !important;
  font-weight: 600;
  color: var(--text) !important;
}

.cards {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.card {
  --accent: var(--owner);
  --accent-dark: var(--owner-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border-radius: 22px;
  padding: 30px 24px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: fadeUp 0.6s ease both;
  animation-delay: calc(var(--i) * 0.12s + 0.15s);
}

.card--pro { --accent: var(--pro); --accent-dark: var(--pro-dark); }
.card--shelter { --accent: var(--shelter); --accent-dark: var(--shelter-dark); }

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px -12px var(--accent);
}

.card:active {
  transform: translateY(-2px) scale(0.99);
}

.card-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px -8px var(--accent);
}

.card-icon img {
  border-radius: 16px;
}

.card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 20px;
  flex-grow: 1;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  transition: gap 0.2s ease, background 0.2s ease;
}

.card:hover .card-cta {
  gap: 10px;
  background: var(--accent-dark);
}

.arrow {
  transition: transform 0.2s ease;
}

.card:hover .arrow {
  transform: translateX(3px);
}

.why,
.compare {
  width: 100%;
  max-width: 1080px;
  margin-top: 64px;
  text-align: center;
  animation: fadeUp 0.6s ease both;
}

.why h2,
.compare h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.why-sub,
.compare-sub {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 620px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  --accent: var(--owner);
  --accent-dark: var(--owner-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 28px 20px 24px;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  animation: fadeUp 0.6s ease both;
  animation-delay: calc(var(--i) * 0.1s + 0.15s);
}

.why-card:nth-child(2) { --accent: var(--pro); --accent-dark: var(--pro-dark); }
.why-card:nth-child(3) { --accent: #66BB6A; --accent-dark: #4C9A50; }
.why-card:nth-child(4) { --accent: var(--shelter); --accent-dark: var(--shelter-dark); }
.why-card:nth-child(5) { --accent: #AB47BC; --accent-dark: #7B1FA2; }
.why-card:nth-child(6) { --accent: #26A69A; --accent-dark: #00796B; }

.why-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px -14px var(--accent);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px -8px var(--accent);
  flex-shrink: 0;
}

.why-icon-svg {
  width: 26px;
  height: 26px;
}

.why-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 8px;
}

.why-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.5);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 360px;
}

.compare-table thead th {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(92, 107, 192, 0.35), rgba(0, 137, 123, 0.28));
  color: var(--text);
  position: sticky;
  top: 0;
}

.compare-table thead th:first-child {
  border-top-left-radius: 20px;
}

.compare-table thead th:last-child {
  border-top-right-radius: 20px;
}

.compare-table th.col-pcc {
  position: relative;
}

.compare-table th.col-pcc::after {
  content: 'Recomendado';
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #66BB6A;
  margin-top: 4px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: center;
  font-size: 0.94rem;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  max-width: 140px;
  white-space: normal;
  line-height: 1.35;
}

.compare-table tbody td {
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

.compare-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.07);
}

.compare-table td.col-pcc {
  background: rgba(102, 187, 106, 0.08);
}

.compare-table tbody tr:nth-child(even) td.col-pcc {
  background: rgba(102, 187, 106, 0.12);
}

.compare-table tbody tr:hover td.col-pcc {
  background: rgba(102, 187, 106, 0.16);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
}

.badge--yes {
  background: rgba(102, 187, 106, 0.18);
  color: #66BB6A;
}

.badge--no {
  background: rgba(239, 83, 80, 0.14);
  color: #ef5350;
}

.badge--partial {
  background: rgba(255, 183, 77, 0.16);
  color: #ffb74d;
  font-size: 0.7rem;
  width: auto;
  padding: 0 10px;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .compare-table-wrap {
    border-radius: 14px;
  }

  .compare-table thead th {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .compare-table thead th:first-child,
  .compare-table thead th:last-child {
    border-radius: 0;
  }

  .compare-table thead th:first-child {
    border-top-left-radius: 14px;
  }

  .compare-table thead th:last-child {
    border-top-right-radius: 14px;
  }

  .compare-table th.col-pcc::after {
    font-size: 0.52rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .badge {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }

  .badge--partial {
    font-size: 0.6rem;
    padding: 0 6px;
  }
}

.footer {
  margin-top: 56px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--text);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .card, .why, .compare, .why-card { animation: none; }
  .card, .why-card { transition: none; }
}
