:root {
  --primary-color: #364d77;
  --secondary-color: #334155;
  --h3-color: #5b6f8d;
  --accent-color: #1768b9;
  --text-color: #122b4f;
  --background-color: #f9fafb;
  --border-color: #e2e8f0;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: background-color 0.5s ease;
}

header {
  position: relative;
  min-height: 300px;
  padding: 1em 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b, #334155);
  transform: translateZ(0);
  will-change: transform;
  z-index: -1;
}

header img {
  width: 120px;
  margin-bottom: 0.5rem;
  animation: zoomIn 1s ease forwards 0.5s;
  opacity: 0;
}

header h1 {
  margin: 0;
  font-size: 1.4rem;
  animation: fadeIn 1s ease forwards 1s;
  opacity: 0;
  font-weight: 400;
  color: #fff;
}

header a {
  margin-top: 40px !important;
}

/* Main content */
main {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
  line-height: 1.6;
  animation: fadeInUp 1s ease forwards 1.5s;
  opacity: 0;
  transform: translateY(20px);
}

h2 {
  margin-top: 2.4rem;
  margin-bottom: -0.1em;
  font-size: 2rem;
  color: var(--primary-color);
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.3rem;
  position: relative;
  overflow: hidden;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.4s ease;
}

h2:hover::after {
  width: 100%;
}

.after-h2 {
  margin-bottom: 0.7em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.2rem;
}

h3.light {
  color: var(--h3-color);
  margin-bottom: -0.6rem;
}

.feature-content {
  margin-top: 0;
  padding-left: 1.6em;
}

/* Listas animadas */
ul {
  /* list-style: none; */
  padding-left: 1.1em;
}

ul li::marker {
  color: var(--accent-color);
}

ul li {
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLeft 0.8s ease forwards;
}

ul li:nth-child(1) {
  animation-delay: 0.3s;
}
ul li:nth-child(2) {
  animation-delay: 0.5s;
}
ul li:nth-child(3) {
  animation-delay: 0.7s;
}
ul li:nth-child(4) {
  animation-delay: 0.9s;
}
ul li:nth-child(5) {
  animation-delay: 1.1s;
}

/* Tabla comparativa */
.comparativa th,
.comparativa td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.comparativa tr:hover td {
  background-color: #f1f5f9;
  transform: scale(1.02);
}

/* MVP buttons */
.mvp-links {
  margin-top: 3rem;
  text-align: center;
}

.mvp-button {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.5rem;
  background-color: #dd2b49;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s;
}

.mvp-button:hover {
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--text-color);
  animation: fadeIn 1s ease forwards 2s;
  opacity: 0;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animaciones clave */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsividad */
@media (max-width: 768px) {
  header {
    height: 200px;
  }
  /* header img {
    width: 60px;
  } */
  header h1 {
    font-size: 1.5rem;
  }
  main {
    margin: 2rem auto;
    padding: 20px;
  }
  .hidden-on-desktop {
    display: none;
  }
}

.aeris-plans {
  margin: 3rem 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.plan-card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.plan-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.plan-card p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.plan-card ul {
  list-style: none;
  padding: 0;
}

.plan-card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2em;
}

.plan-card ul li::before {
  content: "✔";
  color: var(--accent-color);
  position: absolute;
  left: 0;
}

.versiones {
  margin-top: 3rem;
}

.versiones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.card p {
  margin-top: 0.5rem;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .versiones-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .versiones-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* header img {
    width: 50px;
  } */
  header h1 {
    font-size: 1.2rem;
  }
  main {
    margin: 1.5rem auto;
    padding: 20px;
  }
}
