:root {
  --primary-color: #fcd031;
  --secondary-color: #333;
  --bg-dark: #0a0a0a;
  --bg-light: rgba(36, 32, 32, 0.8);
  --text-light: #fff;
  --card-radius: 0.5rem;
  --gap: 1.5rem;
  --transition: 0.3s ease;
}

/* Reset rápido */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Contenedor general */
.principal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 2rem 0;
  gap: 3rem;
  color: var(--secondary-color);
  font-family: Arial, sans-serif;
}

/* 1. Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: var(--text-light);
  padding: 2rem;
  border-radius: var(--card-radius);
  width: 100%;
  overflow: hidden;
  margin-top: 2px;
  margin-bottom: 20px;
  background-size: 100% 100%;
  object-fit: cover;
}

.hero-content {
  flex: 1 1 300px;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;

}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--card-radius);
  text-decoration: none;
  font-weight: bold;
  transition: background var(--transition), color var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: #e0b52a;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
}

.hero-image {
  flex: 1 1 300px;
  max-width: 500px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--card-radius);
}

/* 2. Características */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  width: 90%;
  margin-bottom: 20px;
  color: white;

}

.feature-card {
  position: relative;
  background: var(--bg-light);
  backdrop-filter: blur(6px);
  padding: 1.5rem;
  border-radius: var(--card-radius);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.feature-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* 4. Clientes destacados */
.clientes-logos {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  width: 80%;
  height: auto;
  text-align: center;
}

.clientes-logos h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
  max-width: 23ch;
  margin: 0 auto;
  line-height: 1.3;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  margin: 50px;
  gap: 50px;
  justify-content: center;
}

.logo-item img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: brightness(0.8);
  transition: filter var(--transition);
  border-radius: 50%;
}

.logo-item img:hover {
  filter: brightness(1);
}

/* 6. Planes y precios + publicidad */
.pricing {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.cabplan {
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 200px;
  margin-bottom: 15px;
  justify-content: space-between;
}

.pricing h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.plans-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--gap);
  margin-bottom: 2rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-light);
  backdrop-filter: blur(6px);
  padding: 1.5rem;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.plan-card.popular::before {
  content: "Más popular";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--card-radius);
  font-size: 0.75rem;
  font-weight: bold;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

.plan-card p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

.plan-card ul {
  list-style: none;
  margin-bottom: 1rem;
  text-align: left;
  padding-left: 1rem;
  color: white;
}

.plan-card ul li {
  margin-bottom: 0.5rem;
}

.plan-card .modificar {
  margin-top: auto;
}

.cuerpoplan {
  display: flex;
  flex-direction: column;
  height: auto;
}

/* Espacio publicitario */
.publicidad {
  margin: 0 auto;
  width: 300px;
  height: 250px;
  background: #f5f5f5;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  border-radius: var(--card-radius);
}


/* 8. Espacio lateral de ads */
.ad-space {
  margin: 2rem auto;
  width: 728px;
  height: 90px;
  background: #f5f5f5;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  border-radius: var(--card-radius);
}

/* Responsividad */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    gap: 40px;
  }

  .hero-image {
    flex: 1 1 200px;
    max-width: 300px;
    text-align: center;
  }

  .hero-image img {
    max-width: 100%;
    border-radius: var(--card-radius);
  }

  .hero-content,
  .hero-image {
    max-width: 100%;
  }

  .plans-grid,
  .posts-grid,
  .features,
  .stats {
    grid-template-columns: 1fr !important;
  }

  .ad-space {
    width: 100%;
    height: 100px;
  }

  .clientes-logos h2 {
    font-size: 1.1rem;
  }
}