body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
  }
  
  .header {
    height: 30vh;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('../img/bannerTitulo.png');
    background-repeat: repeat;
    background-position: center;
    background-size: 850px auto;
    color: white;
    overflow: hidden;
    position: relative; /* Asegura que el ::before se limite a este contenedor */
    z-index: 0; /* ⬅️ Muy importante para no superponerse al hero */
  }
  

  .header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(18, 18, 18, 0.9); /* opacidad oscura */
    z-index: 1;
  }
  
  .header > * {
    position: relative;
    z-index: 2;
    padding: 0.2rem 1rem; /* mucho más compacto */
  }
  
  .logo-img {
    width: auto;
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
    object-fit: contain;
  }
  
  
  .logo {
    font-size: 2.5rem;
    color: #ffffff;
  }
  
  .tagline {
    font-size: 1.2rem;
    color: #bbbbbb;
  }
  
  .menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: none;
  }
  
  .nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  
  .nav a {
    color: #ff5252;
    text-decoration: none;
    font-weight: 600;
  }
  
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
  
    .nav ul {
      display: none;
      flex-direction: column;
      background-color: #1e1e1e;
      padding: 1rem;
      position: absolute;
      right: 0;
      top: 4rem;
      width: 200px;
    }
  
    .nav ul.show {
      display: flex;
    }
  }
  
  .hero {
    position: relative;
    min-height: 60vh;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    color: white;
    background-image: url('../img/banner.png');
    background-repeat: repeat;
    background-position: center;
    background-size: auto; /* o 'initial' */
    overflow: hidden;
  }
  
  
  .hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.1); /* opacidad oscura */
    z-index: 1;
  }
  
  .hero > * {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
  }
  
  
  .hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  .btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: none;
  }
  
  .btn::before {
    content: "";
    position: absolute;
    left: -50%;
    top: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, #ff5252, #ff2e2e);
    transition: all 0.5s ease;
    z-index: 0;
    transform: skewX(-20deg);
  }
  
  /* ESTA LÍNEA ES CLAVE */
  .btn span {
    position: relative;
    z-index: 2;
  }

  
  .plans .card {
    text-align: center;
  }
  
  .plans .card h3 {
    margin-top: 0;
    color: #ff5252;
  }
  
  .footer {
    background-color: #1e1e1e;
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .footer a {
    color: #ff5252;
    margin: 0 0.5rem;
    text-decoration: none;
  }
  
  .legal-links {
    margin-top: 1rem;
  }
  
  .legal-links a {
    color: #bbbbbb;
    text-decoration: underline;
    font-size: 0.9rem;
  }
  .section h3 {
    color: #ff5252;
    margin-top: 2rem;
  }
  .card p {
    text-align: justify;
  }

  .card ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
  }
  
  .card ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #ff5252;
    font-weight: bold;
  }

  .carousel-container {
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  
  .carousel-track {
    display: flex;
    animation: scrollCarousel 12s linear infinite;
    width: max-content;
  }
  
  .carousel-track img {
    width: 300px; /* Ajusta el tamaño de cada imagen */
    height: 200px;
    flex-shrink: 0;
    object-fit: cover;
    margin-right: 8px;
    border-radius: 12px;
  }
  
  @keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* desplazamiento de la mitad porque duplicamos imágenes */
  }
  /* Estructura de grid moderna */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .plan-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  }
  
  .plan-card h3 {
    color: #ff5252;
    margin-bottom: 1rem;
  }
  
  .plan-card p {
    margin-bottom: 1rem;
  }
  
  .plan-card .plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
  }
  
  .plan-card .terms {
    font-size: 0.8rem;
    color: #bbbbbb;
    margin-bottom: 1.5rem;
  }

  .pago-container {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  }
  
  .pago-info {
    margin-bottom: 2rem;
    text-align: left;
  }
  
  .pago-info h3 {
    color: #ff5252;
    margin-bottom: 0.5rem;
  }
  
  .plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
  
  .plan-summary {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: justify;
    color: #cccccc;
  }
  
  .pago-info ul {
    margin-left: 1rem;
    list-style: disc inside;
  }
  
  .pago-info ul li {
    margin-bottom: 0.5rem;
  }
  
  .pago .terms {
    font-size: 0.8rem;
    color: #bbbbbb;
    margin-top: 1rem;
  }
  
  #paymentForm {
    display: flex;
    flex-direction: column;
  }
  
  #paymentForm label {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }
  
  #paymentForm input {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.3rem;
    border-radius: 5px;
    border: 1px solid #444;
    background: #1e1e1e;
    color: #e0e0e0;
  }
  
  #paymentForm h4 {
    margin-bottom: 1rem;
  }
  
  
  