:root {
  --primary-color: #F26522;
  --secondary-color: #242424;
  --light-bg: #ECECEC;
  --white: #ffffff;
}

/* Base */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  background: var(--light-bg);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header img {
  height: 40px;
}

header a {
  color: var(--secondary-color);
  text-decoration: none;
  margin-left: 10px;
}

/* Hero Section */
.hero {
  background: url('../images/fondo-hero.png') center center/cover no-repeat;
  position: relative;
  text-align: center;
  padding: 100px 20px;
  color: var(--white);
  animation: fadeIn 1s ease-in;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(36, 36, 36, 0.5);
  z-index: 0;
}

.hero h1,
.hero h2,
.buttons {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero h2 {
  font-size: 1.5rem;
  margin-top: 10px;
}

.buttons {
  margin-top: 30px;
}

/* Botones */
.button-primary,
.button-secondary,
.button-outline {
  padding: 15px 30px;
  border-radius: 8px;
  margin: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.button-primary {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
}

.button-primary:hover {
  background: #d9541d;
}

.button-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 15px 30px;
  /* Igual que el button-primary */
  font-size: 1.2rem;
  /* Igual que el button-primary */
  font-weight: 700;
  /* Igual que el button-primary */
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.button-secondary:hover {
  background: var(--white);
  color: var(--secondary-color);
}

.button-secondary-large {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 20px 50px;
  /* Más grande */
  font-size: 1.5rem;
  /* Letra más grande */
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.button-secondary-large:hover {
  background: var(--white);
  color: var(--secondary-color);
  transform: scale(1.08);
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.25);
}

.button-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  /* Igual que el button-primary */
  font-size: 1.2rem;
  /* Igual que el button-primary */
  font-weight: 700;
  /* Igual que el button-primary */
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.button-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.button-outline-large {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 20px 50px;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.button-outline-large:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.25);
}

/* Botón especial grande */
.button-primary-large {
  background: var(--primary-color);
  color: var(--white);
  padding: 20px 50px;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  animation: pulse 2s infinite;
  border: none;
}

.button-primary-large:hover {
  background: #ff6a33;
  /* Un naranja un poco más claro */
  transform: scale(1.08);
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.25);
  color: var(--white);
  /* Se asegura que el texto siga blanco */
}

/* Secciones */
section {
  padding: 80px 20px;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

/* Video Section */
.video-section {
  background: var(--light-bg);
}

.video-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.video-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #555;
}

.video-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: inline-block;
}

.video-card iframe {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}

/* Video Responsive */
.responsive-video {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 20px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* Community */

.community {
  background: var(--white);
  text-align: center;
  padding: 80px 20px;
  animation: fadeIn 1s ease-in;
}

.community h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.community p {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px;
}

.community-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--secondary-color);
  text-align: left;
}

.community-benefits div {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
}


/* Beneficios */
.benefits-platix {
  background: linear-gradient(135deg, #fff7f2, #ffffff);
  padding: 80px 20px;
  text-align: center;
}

.benefits-platix h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.benefits-platix p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

.benefits-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* 5 columnas fijas */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.6s ease, box-shadow 0.6s ease, opacity 0.6s ease;
  font-size: 3rem;
  color: var(--secondary-color);
  opacity: 0;
  transform: translateY(50px);
  transition-delay: var(--delay, 0s); /* <<< Agregamos soporte para delay */
}

.benefit-card.visible {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0px 8px 30px rgba(0,0,0,0.15);
}


.benefit-card h3 {
  margin-top: 15px;
  font-size: 1.1rem;
  text-align: center;
}

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


/* Fin benefits*/

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.icon,
.cta-card .icon {
  font-size: 50px;
}

/* CTA */
.cta-options {
  background: linear-gradient(135deg, var(--primary-color), #FF8C70);
  color: var(--white);
}

.cta-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  color: var(--secondary-color);
}

/* Testimonios */
.testimonials {
  background: var(--white);
  color: var(--secondary-color);
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

/* FAQ */
.faq {
  background: var(--light-bg);
}

.faq-container {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  outline: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  position: relative;
  transition: 0.3s;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  transition: 0.3s;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: var(--white);
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 20px;
}

/* Footer */
footer {
  background: var(--secondary-color);
  color: var(--white);
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
}

footer img {
  height: 30px;
  margin-bottom: 10px;
}

/* Animaciones */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .buttons {
    flex-direction: column;
  }

  .button-primary,
  .button-secondary,
  .button-outline {
    width: 80%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .video iframe {
    width: 100% !important;
    height: auto !important;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .benefits-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

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