@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Rubik&display=swap");

/* Estilos generales */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Open Sans", Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* Elimina el resaltado al tocar elementos */
    touch-action: manipulation; /* Mejora el rendimiento táctil */
}

body strong {
    color: #0362A6;
}
body p {
font-size: 1.3rem;
    
}

.divFooter {
    position: fixed;
    width: 100%;
    bottom: 0;
    padding: 5px 0;
    z-index: 1;
    background-color: #1a1e25;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}
.divFooter.visible {
    opacity: 1;
}
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0362A6;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
#back-to-top:hover {
    background-color: #024e85;
    transform: translateY(-3px);
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
#back-to-top i {
    font-size: 20px;
}

/* Contenedor principal con márgenes */
.container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.open .container {
    opacity: 1;
    animation: fadeIn 0.8s ease-in-out forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Logo */
.logo-hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    margin: 20px 0 40px 0;
    transition: transform 0.5s ease;
}
.logo-hero:hover {
    transform: scale(1.05);
}
.imgLogo {
    padding-top: 20px;
    height: 170px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}
.imgLogo:hover {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

/* Paneles */
.panel {
    position: fixed;
    width: 50%;
    height: 100%;
    background-color: #131824;
    z-index: 5;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.panel.left {
    left: 0;
}
.panel.right {
    right: 0;
}
.open .panel.left {
    transform: translateX(-100%);
}
.open .panel.right {
    transform: translateX(100%);
}

/* Botones */
#introBtn, #openerBtn {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
#introBtn:hover, #openerBtn:hover {
    transform: translate(-50%, -50%) scale(1.05);
}
.lgoBtn {
    position: relative;
    top: -6.5px;
    transition: transform 0.5s ease;
}
.lgoBtn #Layer_2 {
    position: relative;
    top: 10px;
    width: 120px;
    transform-origin: center center;
}
.lgoBtn #Layer_2 .cls-1 {
    fill: transparent;
    stroke: white;
    stroke-width: .5px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLogo 5s ease forwards;
}

/* Creamos la animación para dibujar el logo */
@keyframes drawLogo {
    0% {
        stroke-dashoffset: 1000;
        fill: rgba(255, 255, 255, 0);
    }
    20% {
        stroke-dashoffset: 800;
    }
    30% {
        stroke-dashoffset: 700;
    }
    40% {
        stroke-dashoffset: 600;
    }
    50% {
        stroke-dashoffset: 500;
    }
    60% {
        stroke-dashoffset: 400;
    }
    70% {
        stroke-dashoffset: 300;
    }
    80% {
        stroke-dashoffset: 100;
        fill: white;
    }
    90% {
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dashoffset: 0;
    }
}
.lgoBtn #Layer_2 .cls-1 {
    fill: #fff;
    transition: fill 0.3s ease;
}
#introBtn {
    width: 180px;
    height: 180px;
    transition: all 0.5s ease;
}
#introBtn svg {
    width: 100%;
    height: 100%;
    transition: filter 0.5s ease;
}
.open #introBtn, .open #openerBtn {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}
section {
    scroll-margin-top: 60px;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Estilos para el menú hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 2;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(3, 98, 166, 0.9);
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.hamburger-menu:hover {
    background-color: rgba(3, 98, 166, 1);
    transform: scale(1.1);
}
.hamburger-menu span {
    position: absolute;
    left: 15px;
    right: 15px;
    height: 4px;
    background-color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.hamburger-menu span:nth-child(1) {
    top: 18px;
}
.hamburger-menu span:nth-child(2) {
    top: 28px;
}
.hamburger-menu span:nth-child(3) {
    top: 38px;
}

/* Estilos para cuando el menú está abierto */
.hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 28px;
}
.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 28px;
}

/* Media query para pantallas en modo retrato */
@media (max-width: 1024px), (orientation: portrait) {
    .hamburger-menu {
        display: flex;
    }

    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 999;
        transition: right 0.3s ease;
        flex-direction: column;
        justify-content: center;
        padding: 50px 20px;
    }
    
    .main-menu.open {
        right: 0;
    }
    
    .main-menu ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-menu ul li {
        margin: 15px 0;
    }
    
    .main-menu .logo {
        position: absolute;
        top: 20px;
        left: 20px;
        width: 100px;
    }
}

/* Estilos para el menú principal */
.main-menu {
    display: flex;
    top: 0;
    /* position: fixed; */
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding: 10px 20px;
    z-index: 13;
    background-color: #1a1e25;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.main-menu .logo {
    height: 40px;
    margin-right: 20px;
    transition: transform 0.3s ease;
}
.main-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-menu li {
    margin: 0 15px;
}
.main-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}
.main-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 30px;
    opacity: 0;
}
.main-menu a:hover {
    background-color: rgba(3, 98, 166, 0.8);
    color: white;
}
.main-menu a:hover::before {
    opacity: 1;
}

/* Responsive para la navegación */
@media (max-width: 1024px)  {
    .main-menu {
        flex-direction: column;
        padding: 15px;
    }
    
    .main-menu .logo {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .main-menu ul {
        transform: translateY(50%);
        font-size: 1.3rem;
        width: 100%;
        justify-content: center;
    }
    
    .main-menu li {
        margin: 0 10px;
    }
  }
  
  /* Estilos para los popups */
  .popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-out;
}
  @keyframes fadeIn {
      from {
          opacity: 0;
      }
      to {
          opacity: 1;
      }
  }
  .popup-content {
    background-color: #fff;
    padding: 30px;
    width: 100%;
    height: 95%;
    overflow-y: auto;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    scrollbar-width: thin;
    animation: scaleIn 0.4s ease-out;
}
  @keyframes scaleIn {
      from {
          transform: scale(0.9);
          opacity: 0;
      }
      to {
          transform: scale(1);
          opacity: 1;
      }
  }
  .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    background-color: #0362A6;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
  }
  .close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  /* Estilos para la galería */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
  }
  
  .gallery-item:hover {
    transform: scale(1.03);
  }
  
  .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }
  
  .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 14px;
  }
  
  .gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #0362A6, #35A4CF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.gallery-item:hover::before {
    transform: scaleX(1);
}
.gallery-item .demo-preview {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.gallery-item .demo-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}
.gallery-item .demo-preview img, 
.gallery-item .demo-preview video {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    transition: transform 0.8s ease;
}
.gallery-item:hover .demo-preview img,
.gallery-item:hover .demo-preview video {
    transform: scale(1.1);
}

.gallery-item h3 {
    padding: 15px 20px 5px;
    font-size: 1.4rem;
    color: #0362A6;
    margin: 0;
    transition: color 0.3s ease;
}

.gallery-item:hover h3 {
    color: #024e85;
}

.gallery-item p {
    padding: 0 20px 20px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Ajustes específicos para el popup de galería */
#galeria-popup .popup-content {
    padding: 40px;
    border-radius: 20px;
}
#galeria-popup h2 {
    color: #0362A6;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}
#galeria-popup h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0362A6;
    border-radius: 3px;
}

/* Responsive para la galería */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .gallery-item .demo-preview {
        height: 180px;
    }
    
    .gallery-item h3 {
        font-size: 1.3rem;
    }
    
    .gallery-item p {
        font-size: 1rem;
    }
    
    #galeria-popup .popup-content {
        padding: 30px;
    }
    
    #galeria-popup h2 {
        font-size: 1.8rem;
    }
}
@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    #galeria-popup .popup-content {
        padding: 25px;
    }
    
    #galeria-popup h2 {
        font-size: 1.6rem;
    }
}

/* Estilos para el popup de demos */
.demos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
  }
  .demo-item {
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .demo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #0362A6, #35A4CF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
  }
  .demo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
  .demo-item:hover::before {
    transform: scaleX(1);
  }
  .demo-preview {
    height: 200px;
    overflow: hidden;
    position: relative;
  }
  .demo-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
  }
  .demo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
  }
  .demo-item:hover .demo-preview img {
    transform: scale(1.1);
  }
  .demo-item h3 {
    padding: 15px 20px 5px;
    font-size: 1.4rem;
    color: #0362A6;
    margin: 0;
    transition: color 0.3s ease;
  }
  .demo-item:hover h3 {
    color: #024e85;
  }
  .demo-item p {
    padding: 0 20px 20px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
  }
  .demo-item .demo-button {
    margin: 10px 20px 20px;
    align-self: center;
  }
  .infoDemo {
    padding: 20px;
    margin-top: -20px;
  }
  .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(3, 98, 166, 0.9);
    color: white;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
  }
  .price-area {
    background-color: #f6f9fc;
    padding: 10px 20px;
    margin: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
  }
  .intro-price {
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2em;
  } 
  .original-price {
    color: #95a5a6;
    text-decoration: line-through;
    margin-left: 8px;
    font-size: 0.9em;
  }

  /* Estilos para el popup de detalles del demo */
#demo-details-popup .popup-content {
    width: 100%;
    padding: 30px;
  }
  
  .demo-details-content {
    margin-top: 20px;
  }
  
  .demo-details-gallery {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    min-width: 300px;
  }
  
  .demo-details-description {
    background-color: #f6f9fc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    width: 100%;
  }
  
  .demo-details-gallery img,
  .demo-details-gallery video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
  
  .view-more {
    color: #0362A6;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
  }
  
  .view-more:hover {
    text-decoration: underline;
  }
  
  /* Responsive para el popup de detalles */
  @media (max-width: 768px) {
    .demo-details-content {
      flex-direction: column;
    }
    
    .demo-details-gallery {
      min-width: 100%;
    }
  }

  /* Estilos para el lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding: 30px;
    box-sizing: border-box;
  }
  
  .lightbox-content {
    max-height: 95vh;
    max-width: 90vw;
    margin: auto;
    display: block;
    animation: zoomIn 0.3s ease;
  }
  
  @keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
  }
  
  .lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 1.2rem;
  }
  
  /* Miniaturas de la galería */
  .gallery-thumbnail {
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }
  
  .gallery-thumbnail:hover {
    transform: scale(1.02);
  }
  
  .gallery-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .gallery-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    opacity: 0.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }
  
  /* Indicador para videos */
  .media-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(3, 98, 166, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
  }
  
  /* Ajustes específicos para el popup de demos */
 

  #games-popup .popup-content {
    padding: 40px;
    border-radius: 20px;
  }
  #games-popup h2 {
    color: #0362A6;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
  }
  #games-popup h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0362A6;
    border-radius: 3px;
  }

  .gamesDisclaimer {
    position: relative;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
  }
  .gamesDisclaimer p {
    color: #555;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
  }
  
  /* Responsive para la galería de demos */
  @media (max-width: 768px) {
    .demos-gallery {
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 20px;
    }
    
    .demo-preview {
      height: 180px;
    }
    
    .demo-item h3 {
      font-size: 1.3rem;
    }
    
    .demo-item p {
      font-size: 1rem;
    }
    
    #games-popup .popup-content {
      padding: 30px;
    }
    
    #games-popup h2 {
      font-size: 1.8rem;
    }
  }
  @media (max-width: 576px) {
    .demos-gallery {
      grid-template-columns: 1fr;
    }
    
    #games-popup .popup-content {
      padding: 25px;
    }
    
    #games-popup h2 {
      font-size: 1.6rem;
    }
  }

/* Ajustes específicos para el popup de contacto */
#contacto-popup .popup-content {
    padding: 30px 40px; /* Reducido el padding vertical */
    border-radius: 20px;
    max-height: 98vh;
    overflow-y: auto;
}
#contacto-popup h2 {
    color: #0362A6;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}
#contacto-popup h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0362A6;
    border-radius: 3px;
}

/* Ajustes para el formulario en dos columnas */
#contacto-popup form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
#contacto-popup .form-group.full-width {
    grid-column: span 2;
}

/* Ajustes para el tamaño del formulario */
#contacto-popup .contact-form-container {
    max-height: none; /* Eliminado el límite de altura fijo */
    margin-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #0362A6 #f0f0f0;
    padding: 20px;
}
#contacto-popup .contact-form-container::-webkit-scrollbar {
    width: 8px;
}
#contacto-popup .contact-form-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}
#contacto-popup .contact-form-container::-webkit-scrollbar-thumb {
    background-color: #0362A6;
    border-radius: 10px;
}

/* Ajuste para el botón de envío */
#contacto-popup button[type="submit"] {
    grid-column: span 2;
    width: 180px;
    margin: 10px auto 0;
    padding: 12px 25px;
    font-size: 16px;
}

/* Ajustes responsive para el popup de contacto */
@media (max-width: 768px) {
    #contacto-popup .popup-content {
        padding: 30px;
        height: auto; /* Altura automática en lugar de fija */
        max-height: 90vh; /* Altura máxima para permitir scroll */
    }
    
    #contacto-popup h2 {
        font-size: 1.8rem;
    }
    
    #contacto-popup .contact-form-container {
        padding: 15px;
    }
    
    #contacto-popup form {
        grid-template-columns: 1fr;
    }
    
    #contacto-popup .form-group.full-width {
        grid-column: span 1;
    }
    
    #contacto-popup button[type="submit"] {
        grid-column: span 1;
    }
}
@media (max-width: 576px) {
    #contacto-popup .popup-content {
        padding: 20px;
        border-radius: 15px;
    }
    
    #contacto-popup h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    #contacto-popup .contact-form-container {
        padding: 10px;
    }
    
    .close-btn {
        width: 45px;
        height: 45px;
        font-size: 2rem;
        top: 10px;
        right: 10px;
    }
}

/* Estilos para el formulario de contacto */
.form-group {
    margin-bottom: 10px;
}
.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #0362A6;
    font-size: 16px; 
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 12px; 
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.form-group textarea {
    height: 80px;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #35A4CF;
    box-shadow: 0 5px 15px rgba(53, 164, 207, 0.2);
    outline: none;
}

/* Estilo para el contenedor de teléfono con prefijo */
.phone-input-container {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.phone-input-container:focus-within {
    border-color: #35A4CF;
    box-shadow: 0 5px 15px rgba(53, 164, 207, 0.2);
}
.phone-prefix {
    background-color: #f5f5f5;
    padding: 5px 12px;
    color: #666;
    font-weight: bold;
    border-right: 1px solid #ddd;
}
.phone-input-container input {
    border: none;
    box-shadow: none;
    border-radius: 0;
    flex: 1;
}
.phone-input-container input:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

/* Nuevo estilo para el contenedor del formulario */
.contact-form-container {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    padding: 30px;
    margin-bottom: 25px;
}

/* Estilo para el botón de envío */
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to right, #0362A6, #35A4CF);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(3, 98, 166, 0.3);
    border: none;
    cursor: pointer;
    width: 220px !important;
}
button[type="submit"] svg {
    height: 28px;
    margin-right: 10px;
    transition: transform 0.3s ease;
    fill: white;
}
button[type="submit"]:hover {
    background: linear-gradient(to right, #024e85, #0362A6);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(3, 98, 166, 0.4);
}
button[type="submit"]:hover svg {
    transform: rotate(-15deg);
}
.contact-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}
.contact-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.contact-info p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Estilo para el botón de WhatsApp */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to right, #25D366, #128C7E);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    width: 220px !important;
}
.whatsapp-btn img {
    height: 24px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}
.whatsapp-btn:hover {
    background: linear-gradient(to right, #128C7E, #075E54);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(18, 140, 126, 0.4);
}
.whatsapp-btn:hover img {
    transform: rotate(-15deg);
}

/* Responsive para el formulario */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 25px;
    }
    
    .contact-form-container h2 {
        font-size: 1.8rem;
    }
    
    .form-group input, .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    button[type="submit"] {
        padding: 12px 20px;
        font-size: 14px;
    }
}
@media (max-width: 576px) {
    .contact-form-container {
        padding: 20px;
    }
    
    .contact-form-container h2 {
        font-size: 1.6rem;
    }
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5% 40px;
    margin-top: 80px;
    margin-bottom: 80px;
    position: relative;
    gap: 40px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(3, 98, 166, 0.5), transparent);
}

.hero-section h1 {
    font-size: 2.8rem;
    color: #0362A6;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}

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

.hero-section h2 {
    font-size: 2rem;
    color: #147AB3;
    margin-bottom: 25px;
    font-weight: 600;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button.primary {
    background-color: #0362A6;
    color: white;
    box-shadow: 0 8px 20px rgba(3, 98, 166, 0.3);
}

.cta-button.primary:hover {
    background-color: #024e85;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(3, 98, 166, 0.4);
}

.cta-button.secondary {
    background-color: white;
    color: #0362A6;
    border: 2px solid #0362A6;
    box-shadow: 0 5px 15px rgba(3, 98, 166, 0.1);
}

.cta-button.secondary:hover {
    background-color: #ffffff;
    transform: translateY(-5px);
}

.hero-video {
    flex: 1;
    max-width: 600px;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.5s ease;
}

.hero-video:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* similar a background-size: cover */
    object-position: bottom top; /* controla qué parte del video se muestra */
    
    /* Otras opciones de object-position: */
    /* object-position: bottom center; */
    /* object-position: 20% 50%; */
    /* object-position: left; */
    /* object-position: right bottom; */
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-video {
        max-width: 100%;
    }
}

/* Why Us Section */
.why-us-section {
    text-align: center;
    margin: 0 5% 80px;
    padding: 40px 0;
    position: relative;
}
.why-us-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(3, 98, 166, 0.5), transparent);
}
.why-us-section h2 {
    font-size: 2.3rem;
    color: #0362A6;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}
.why-us-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0362A6;
    border-radius: 3px;
}
.benefits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}
.benefit-item {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    padding: 30px 20px;
    border-radius: 15px;
    background-color: #f9f9f9;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}
.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #0362A6, #35A4CF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.benefit-item:hover::before {
    transform: scaleX(1);
}
.benefit-icon {
    font-size: 2.5rem;
    color: #0362A6;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}
.benefit-item:hover .benefit-icon {
    transform: scale(1.2);
}
.benefit-item h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}
.benefit-item:hover h3 {
    color: #0362A6;
}
.benefit-item p {
    color: #666;
    line-height: 1.5;
}
.differentials {
    transition: transform 0.4s ease;
    max-width: 97%;
    padding: 60px 5%;
    margin: 0;
    border-radius: 20px;
    text-align: center;
    background: transparent;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f4fd 100%);
    border-left: 4px solid #0362A6;
    position: relative;
    overflow: hidden;
}
.differentials:hover {
    transform: translateY(-5px);
}
.differentials h2 {
    font-size: 1.8rem;
    color: #0362A6;
    margin-bottom: 20px;
}
.differentials p {
    line-height: 1.6;
    color: #555;
}

/* How It Works Section */
.how-it-works-section {
    text-align: center;
    margin: 0 5% 80px;
    padding: 40px 0;
    position: relative;
}
.how-it-works-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(3, 98, 166, 0.5), transparent);
}
.how-it-works-section h2 {
    font-size: 2.3rem;
    color: #0362A6;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
.how-it-works-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0362A6;
    border-radius: 3px;
}
.how-it-works-disclaimer {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}
.step-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 40px 30px;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}
.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #0362A6, #35A4CF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.step-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.step-item:hover::before {
    transform: scaleX(1);
}
.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f8ff;
    border-radius: 50%;
    transition: transform 0.4s ease, background-color 0.4s ease;
}
.step-icon img {
    width: 45px;
    height: 45px;
    transition: transform 0.4s ease;
}
.step-item:hover .step-icon {
    transform: scale(1.1);
    background-color: #e0f0ff;
}
.step-item:hover .step-icon img {
    transform: rotate(10deg);
}
.step-item h3 {
    font-size: 1.5rem;
    color: #0362A6;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}
.step-item:hover h3 {
    color: #024e85;
}
.step-item p {
    color: #555;
    line-height: 1.6;
}
.pricing-note{
    max-width: 97%;
    padding: 60px 5%;
    margin: 0 auto 80px;
    border-radius: 20px;
    text-align: left;
    background: transparent;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f4fd 100%);
    border-left: 4px solid #0362A6;
    position: relative;
    overflow: hidden;
}
.pricing-note-disclaimer {
    max-width: 97%;
    padding: 60px 5%;
    margin: 0 auto 80px;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f4fd 100%);
    border-left: 4px solid #0362A6;
    position: relative;
    overflow: hidden;
}
.pricing-note-disclaimer small {
    /* font-size: 0.95rem; */
    color: #666;
    line-height: 1.6;
}
.pricing-note-disclaimer strong {
    color: #0362A6;
}

/* Our Games Section */
.our-games-section {
    text-align: center;
    margin: 0 5% 80px;
    padding: 40px 0;
    position: relative;
}
.our-games-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(3, 98, 166, 0.5), transparent);
}
.our-games-section h2 {
    font-size: 2.3rem;
    color: #0362A6;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
.our-games-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0362A6;
    border-radius: 3px;
}
.our-games-note {
    max-width: 80%;
    padding: 20px 10px ;
    margin: 0 auto 50px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.our-games-note p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.our-games-note strong {
    color: #0362A6;
}
.games-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}
.game-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}
.game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #0362A6, #35A4CF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}
.game-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.game-item:hover::before {
    transform: scaleX(1);
}
.game-preview {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.game-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}
.game-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.game-item:hover .game-preview img {
    transform: scale(1.1);
}
.game-item h3 {
    padding: 25px 25px 15px;
    font-size: 1.5rem;
    color: #0362A6;
    transition: color 0.3s ease;
}
.game-item:hover h3 {
    color: #024e85;
}
.game-item p {
    padding: 0 25px 25px;
    color: #555;
    line-height: 1.6;
}
.game-price {
    padding: 0 25px 25px;
    text-align: center;
}
.price-tag {
    cursor: pointer;
    display: inline-block;
    background: linear-gradient(to right, #0362A6, #35A4CF);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(3, 98, 166, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-item:hover .price-tag {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(3, 98, 166, 0.3);
}
.games-note {
    max-width: 80%;
    padding: 60px 5%;
    margin: 0 auto 80px;
    border-radius: 20px;
    text-align: center;
    background: transparent;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f4fd 100%);
    border-left: 4px solid #0362A6;
    position: relative;
    overflow: hidden;
}
.games-note p {
    color: #555;
    margin-bottom: 20px;
}
.express-urgency {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f4fd 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 30px auto;
    max-width: 97%;
    border-left: 4px solid #0362A6;
  }
  .urgency-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0362A6;
    display: block;
  }
  .urgency-subtitle {
    font-size: 1.3rem;
    display: block;
    margin: 5px 0 10px;
  }
  .urgency-text {
    font-size: 1.1rem;
  }
  .express-steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0 10px;
    position: relative;
  }
  .express-steps:before {
    content: "";
    position: absolute;
    top: 20px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, #0362A6, #118ce4);
    z-index: 1;
  }
  .step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  .step-number {
    width: 40px;
    height: 40px;
    background: #0362A6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  }
  .step-content h4 {
    color: #333;
    margin: 5px 0;
    font-size: 1.1rem;
  }
  .step-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
  }
  .express-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0362A6;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
  }
  .game-features {
    margin: 12px 0;
    font-size: 0.9rem;
    color: #555;
  }
  .game-features span {
    display: block;
    margin: 3px 0;
  }
  /* Animación para el botón CTA */
  .pulse {
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
  }
  .cta-note {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: normal;
    opacity: 0.9;
  }

/* Pricing Section */
.pricing-section {
    text-align: center;
    margin: 0 5% 80px;
    padding: 40px 0;
    position: relative;
}
.pricing-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(3, 98, 166, 0.5), transparent);
}
.pricing-section h2 {
    font-size: 2.3rem;
    color: #0362A6;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
.pricing-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0362A6;
    border-radius: 3px;
}
.pricing-disclaimer {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 50px;
}
.pricing-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}
.pricing-column {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}
.pricing-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #0362A6, #35A4CF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.pricing-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.pricing-column:hover::before {
    transform: scaleX(1);
}
.pricing-column.featured {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(3, 98, 166, 0.2);
    z-index: 1;
    border: 2px solid #0362A6;
}
.pricing-column.featured:hover {
    transform: scale(1.05) translateY(-10px);
}
.pricing-header {
    padding: 30px;
    background-color: #ffffff; 
    text-align: center;
}
.pricing-column.featured .pricing-header {
    background-color: #ffffff;
}
.pricing-header h3 {
    font-size: 1.8rem;
    color: #0362A6;
    margin-bottom: 20px;
}
.price-badge {
    display: inline-block;
    background: linear-gradient(to right, #0362A6, #35A4CF);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(3, 98, 166, 0.2);
}
.pricing-header p {
    color: #555;
}
#contactoBtn{
    cursor: pointer;
    animation: pulsate-bck 1s ease-in-out infinite both;
}
@-webkit-keyframes pulsate-bck {
    0% {
      -webkit-transform: scale(1);
              transform: scale(1);
    }
    50% {
      -webkit-transform: scale(0.9);
              transform: scale(0.9);
    }
    100% {
      -webkit-transform: scale(1);
              transform: scale(1);
    }
}
@keyframes pulsate-bck {
    0% {
      -webkit-transform: scale(1);
              transform: scale(1);
    }
    50% {
      -webkit-transform: scale(0.9);
              transform: scale(0.9);
    }
    100% {
      -webkit-transform: scale(1);
              transform: scale(1);
    }
}

/* Clients Section */
.clients-section {
    text-align: center;
    margin: 0 5% 80px;
    padding: 40px 0;
    position: relative;
}
.clients-section h2 {
    font-size: 2.3rem;
    color: #0362A6;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}
.clients-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0362A6;
    border-radius: 3px;
}
.clients-disclaimer {
    color: #555;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.clients-logos img {
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
}
.clients-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Estilos para la sección Otro Software */
  .otro-software-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .otro-software-section h2 {
    color: #0362A6;
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
  }
  .otro-software-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0362A6;
    border-radius: 3px;
  }
  .software-disclaimer {
    text-align: center;
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 40px;
    margin-top: 30px;
  }
  .software-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
  }
  .software-item {
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .software-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #0362A6, #35A4CF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
  }
  .software-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
  .software-item:hover::before {
    transform: scaleX(1);
  }
  .software-preview {
    height: 200px;
    overflow: hidden;
    position: relative;
  }
  .software-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
  }
  .software-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
  }
  .software-item:hover .software-preview img {
    transform: scale(1.1);
  }
  .software-item h3 {
    padding: 15px 20px 5px;
    font-size: 1.4rem;
    color: #0362A6;
    margin: 0;
    transition: color 0.3s ease;
  }
  .software-item:hover h3 {
    color: #024e85;
  }
  .software-item p {
    padding: 0 20px 20px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
  }
  .software-item .cta-button {
    margin: 0 20px 20px;
    align-self: flex-start;
  }
  .software-note {
    background-color: #f5f5f5;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
  }
  .software-note p {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  .software-note .cta-button {
    display: inline-block;
    margin-top: 10px;
  }

/* Footer */
footer {
    background-color: #1a1e25;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
}
footer p {
    margin: 0;
}

/* Final CTA */
/* Estilos para la sección Final CTA */
.final-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0362A6 0%, #35A4CF 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/cta-pattern.png') center/cover;
    opacity: 0.1;
    z-index: 0;
  }
  
  .cta-content {
    max-width: 80%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  
  .final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .final-cta p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.9;
  }
  
  .final-cta .cta-button {
    background-color: white;
    color: #0362A6;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: inline-block;
  }
  
  .final-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: #f8f8f8;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .final-cta {
      padding: 60px 20px;
    }
    
    .final-cta h2 {
      font-size: 2rem;
    }
    
    .final-cta p {
      font-size: 1rem;
    }
    
    .final-cta .cta-button {
      padding: 12px 25px;
      font-size: 1rem;
    }
  }

/* Hexagonos */
.button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    width: 200px;
    overflow: visible;
    height: 173px;
    z-index: 10;
}
.hexagon-svg {
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.87));
    transition: filter 0.5s ease;
    overflow: visible;
}
.button:hover .hexagon-svg {
    filter: drop-shadow(0 0 55px rgba(255, 255, 255, 0.8));
}
  
/* Estilos para los hexágonos */
.hex-outer, .hex-inner {
    fill: transparent;
    stroke: white;
    stroke-width: 1;
}
  
/* Animación para el hexágono exterior - combinando dibujo y pulso */
.hex-outer {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: circuitHexagon 8s linear infinite; /* Animación de circuito infinita */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}
  
/* Hexágono interior - sin animación */
.hex-inner {
    stroke-dasharray: 600;
    stroke-dashoffset: 0; /* Siempre visible */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Nueva animación de circuito mejorada */
@keyframes circuitHexagon {
    0% {
        stroke-dashoffset: 800; /* Comienza sin dibujar */
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }
    40% {
        stroke-dashoffset: 0; /* Completamente dibujado */
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    }
    60% {
        stroke-dashoffset: 0; /* Se mantiene dibujado */
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1));
    }
    100% {
        stroke-dashoffset: -800; /* Se borra completamente */
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }
}
  
/* Efectos al pasar el mouse */
.button:hover .hex-outer {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
}
.button:hover .hex-inner {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}
@keyframes glowEffect {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1)) 
                drop-shadow(0 0 30px rgba(180, 220, 255, 0.8));
    }
}

/* Animaciones para elementos al hacer scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.animate-on-scroll {
    opacity: 0;
}
.animate-fadeInUp {
    animation: fadeInUp 1s ease forwards;
}
.animate-fadeInLeft {
    animation: fadeInLeft 1s ease forwards;
}
.animate-fadeInRight {
    animation: fadeInRight 1s ease forwards;
}

/* Delay para animaciones secuenciales */
.delay-100 {
    animation-delay: 0.1s;
}
.delay-200 {
    animation-delay: 0.2s;
}
.delay-300 {
    animation-delay: 0.3s;
}
.delay-400 {
    animation-delay: 0.4s;
}
.delay-500 {
    animation-delay: 0.5s;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section h2 {
        font-size: 1.8rem;
    }
    .hero-section .subtitle {
        font-size: 1.2rem;
    }
    .final-cta h2 {
        font-size: 2rem;
    }
    
}
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section h2 {
        font-size: 1.6rem;
    }
    .cta-buttons {
        flex-wrap: wrap;
    }
    .pricing-column.featured {
        transform: scale(1.03);
    }
    .pricing-column.featured:hover {
        transform: scale(1.03) translateY(-5px);
    }
    .case-item {
        flex-direction: column;
    }
    .case-image {
        min-height: 250px;
    }
    .final-cta {
        padding: 50px 5%;
    }
}
@media (max-width: 768px) {
    .hero-section {
        padding: 10px 5% 30px;
        margin-bottom: 60px;
    }
    .hero-section h1 {
        font-size: 1.9rem;
    }
    .hero-section h2 {
        font-size: 1.4rem;
    }
    .hero-section .subtitle {
        font-size: 1.1rem;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .cta-button {
        width: 100%;
        text-align: center;
    }
    .pricing-column.featured {
        transform: scale(1);
    }
    .pricing-column.featured:hover {
        transform: translateY(-5px);
    }
    .case-image {
        min-height: 200px;
    }
    .benefit-item {
        min-width: 250px;
    }
    .final-cta h2 {
        font-size: 1.7rem;
    }
    .whatsapp-btn {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
}
@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.7rem;
    }
    .hero-section h2 {
        font-size: 1.3rem;
    }
    .hero-section .subtitle {
        font-size: 1rem;
    }
    .our-games-section h2, .why-us-section h2, .how-it-works-section h2, .pricing-section h2, .success-cases-section h2, .clients-section h2 {
        font-size: 1.8rem;
    }
    .game-item, .benefit-item, .step-item {
        min-width: 100%;
    }
    .final-cta {
        padding: 40px 5%;
    }
    .final-cta h2 {
        font-size: 1.5rem;
    }
    .gallery-container {
        grid-template-columns: 1fr;
    }
    .popup-content {
        padding: 20px;
    }
    .close-btn {
        width: 50px;
        height: 50px;
        font-size: 2.2rem;
    }
}

/* Botones de demostración */
.demo-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(to right, #0362A6, #147AB3);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(3, 98, 166, 0.2);
    position: relative;
    overflow: hidden;
}
.demo-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: 1;
}
.demo-button:hover {
    background: linear-gradient(to right, #024e85, #0362A6);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(3, 98, 166, 0.3);
}
.demo-button:hover::before {
    left: 100%;
}
.demo-button.coming-soon {
    background: linear-gradient(to right, #888, #666);
    cursor: not-allowed;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.demo-button.coming-soon:hover {
    background: linear-gradient(to right, #777, #555);
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.demo-button.coming-soon:hover::before {
    left: -100%;
}


/* Estilos para tablas de características */
.features-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
.features-table th, .features-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.features-table th {
    background-color: #0362A6;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.features-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.features-table tr:hover {
    background-color: #f0f8ff;
}
.features-table td:first-child {
    font-weight: bold;
    color: #333;
}
.features-table .check {
    color: #0362A6;
    font-size: 1.2rem;
}
.features-table .cross {
    color: #999;
    font-size: 1.2rem;
}
@media (max-width: 768px) {
    .features-table {
        font-size: 0.9rem;
    }
    
    .features-table th, .features-table td {
        padding: 10px;
    }
}

/* Loader y efectos de carga */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #131824;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #0362A6;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Efectos de transición para páginas */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #131824;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.page-transition.active {
    transform: translateY(0);
}
.page-transition.exit {
    transform: translateY(-100%);
}

/* Efectos de hover para imágenes */
.hover-zoom {
    overflow: hidden;
    border-radius: 10px;
}
.hover-zoom img {
    transition: transform 0.5s ease;
}
.hover-zoom:hover img {
    transform: scale(1.1);
}

/* Efectos de overlay para imágenes */
.overlay-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3, 98, 166, 0.1), rgba(3, 98, 166, 0.8));
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
    padding: 20px;
    text-align: center;
}
.overlay-container:hover .overlay {
    opacity: 1;
}
.overlay h3 {
    color: white;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.overlay p {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}
.overlay-container:hover .overlay h3,
.overlay-container:hover .overlay p {
    transform: translateY(0);
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0362A6;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(3, 98, 166, 0.3);
    z-index: 99;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background-color: #024e85;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(3, 98, 166, 0.4);
}

/* Efectos de partículas y fondos */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(3, 98, 166, 0.2);
    pointer-events: none;
    animation: float 15s infinite linear;
}
@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Efectos de gradiente animado */
.gradient-bg {
    background: linear-gradient(-45deg, #0362A6, #147AB3, #35A4CF, #024e85);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Efectos de texto con gradiente */
.gradient-text {
    background: linear-gradient(to right, #0362A6, #35A4CF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Efectos de borde con gradiente */
.gradient-border {
    position: relative;
    border-radius: 15px;
    padding: 30px;
}
.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0362A6, #35A4CF, #0362A6);
    border-radius: 17px;
    z-index: -1;
    animation: border-animation 3s linear infinite;
}
@keyframes border-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* License Generator Popup Styles */
#license-popup .popup-content {
    margin: 0 auto;
  }
  
  #license-popup h2 {
    color: #0362A6;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
  }
  
  #license-popup h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0362A6;
    border-radius: 3px;
  }
  
  .license-form-container {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  #licenseForm .form-group {
    margin-bottom: 20px;
  }
  
  #licenseForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0362A6;
  }
  
  #licenseForm input,
  #licenseForm select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
  }
  
  #licenseForm input:focus,
  #licenseForm select:focus {
    border-color: #0362A6;
    box-shadow: 0 0 10px rgba(3, 98, 166, 0.2);
    outline: none;
  }
  
  .license-submit-btn {
    display: block;
    width: 100%;
    padding: 15px 30px  !important;
    background: linear-gradient(to right, #0362A6, #35A4CF);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
  }
  
  .license-submit-btn:hover {
    background: linear-gradient(to right, #024e85, #0362A6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(3, 98, 166, 0.3);
  }

  .total-price {
    margin-top: 20px;
    font-weight: bold;
  }
  
  .total-price input {
    font-size: 1.2em;
    color: #333;
    background-color: #f9f9f9;
  }
  
  /* Estilos para la ventana de confirmación */
  #confirmation-popup {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 20px;
      border-radius: 10px;
  }

  .confirmationFooter img{
    position: absolute;
    bottom: 10px;
    height: 80px;
    right: 10px;  
    margin-right: 20px;
    margin-bottom: 10px;
    height: auto;
    width: 200px;
}

    #confirmation-popup .cta-button.primary{
      border: none;
      margin-left: 10px;
    }

  .confirmation-details {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
  }
  
  .confirmation-buttons {
    margin-top: 20px;
    
  }
  
  .confirmation-buttons button {
    min-width: 120px;
  }
  

  #confirmation-popup h2 {
    color: #0362A6;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
  }
  
  #confirmation-popup h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0362A6;
    border-radius: 3px;
  }
  
  /* SweetAlert Custom Styles */
  .license-result {
    text-align: left;
    padding: 10px;
  }
  
  .license-detail {
    margin-bottom: 25px;
  }
  
  .license-detail h3 {
    color: #0362A6;
    margin-bottom: 10px;
    font-size: 18px;
  }
  
  .license-code-container {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0362A6;
  }
  
  .license-code-container code {
    flex: 1;
    font-family: monospace;
    font-size: 16px;
    word-break: break-all;
  }
  
  .copy-btn {
    background: none;
    border: none;
    color: #0362A6;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    transition: all 0.3s ease;
  }
  
  .copy-btn:hover {
    color: #024e85;
    transform: scale(1.1);
  }
  
  .license-info {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
  }
  
  .license-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }
  
  .license-row:last-child {
    border-bottom: none;
  }
  
  .license-row span:first-child {
    font-weight: 600;
    color: #555;
  }
  
  .license-row span:last-child {
    color: #0362A6;
    font-weight: 500;
  }
  
  /* SweetAlert overrides */
  .swal2-popup {
    border-radius: 15px !important;
    padding: 30px !important;
  }
  
  .swal2-title {
    color: #0362A6 !important;
    font-size: 24px !important;
  }
  
  .swal2-html-container {
    margin-top: 20px !important;
  }
  
  .swal2-confirm {
    background: linear-gradient(to right, #0362A6, #35A4CF) !important;
    border-radius: 8px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
  }
  
  .swal2-confirm:hover {
    background: linear-gradient(to right, #024e85, #0362A6) !important;
    box-shadow: 0 5px 15px rgba(3, 98, 166, 0.3) !important;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    #license-popup .popup-content {
      padding: 20px;
    }
    
    .license-form-container {
      padding: 20px;
    }
    
    .license-code-container {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .license-code-container code {
      margin-bottom: 10px;
    }
    
    .copy-btn {
      align-self: flex-end;
    }
    
    .license-row {
      flex-direction: column;
    }
    
    .license-row span:first-child {
      margin-bottom: 5px;
    }
  }

  @media (max-width: 1024px), (orientation: portrait) {
    .hamburger-menu {
        display: flex;
        /* z-index: 1001; Asegura que esté por encima del menú */
    }
    
    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* Cambiado de 70% a 100% para mejor visualización */
        height: 100vh;
        background-color: #131824; /* Fondo más oscuro para mejor contraste */
        z-index: 999;
        transition: right 0.3s ease;
        flex-direction: column;
        justify-content: center;
        padding: 50px 20px;
        overflow-y: auto; /* Permite scroll si hay muchos elementos */
    }
    
    .main-menu.open {
        right: 0;
    }
    
    .main-menu ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
        width: 100%;
        transform: translateY(0) !important; /* Elimina transformación que causa problemas */
    }
    
    .main-menu ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .main-menu ul li a {
        display: block;
        padding: 15px 0;
        font-size: 1.5rem; /* Texto más grande para mejor toque */
        width: 100%;
    }
    
    .main-menu .logo {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 220px;
        height: auto;
    }
    
    /* Mejora para el botón de hamburguesa */
    .hamburger-menu {
        width: 50px;
        height: 50px;
        padding: 10px;
    }
    
    .hamburger-menu span:nth-child(1) {
        top: 15px;
    }
    
    .hamburger-menu span:nth-child(2) {
        top: 25px;
    }
    
    .hamburger-menu span:nth-child(3) {
        top: 35px;
    }
}

/* Mejoras adicionales para dispositivos muy pequeños */
@media (max-width: 480px) {
    body p {
        font-size: 1rem; /* Texto más pequeño para móviles */
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
        padding: 0 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        margin: 5px 0;
        width: 80%;
        text-align: center;
    }
    
    /* Ajustes para el botón de intro */
    #introBtn {
        width: 120px;
        height: 120px;
    }
    
    /* Mejoras para secciones */
    section {
        padding: 30px 15px;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    /* Ajustes para casos de éxito */
    .case-item {
        flex-direction: column;
    }
    
    .case-image {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .case-content {
        width: 100%;
    }
    
    /* Ajustes para juegos */
    .games-gallery {
        grid-template-columns: 1fr;
    }
    
    /* Ajustes para precios */
    .pricing-table {
        grid-template-columns: 1fr;
    }
    
    .pricing-column {
        margin-bottom: 20px;
    }
}

/* Mejoras para interacciones táctiles */
@media (hover: none) {
    /* Estilos específicos para dispositivos táctiles */
    .main-menu a:hover {
        background-color: rgba(3, 98, 166, 0.8);
        color: white;
    }
    
    .main-menu a:active {
        background-color: rgba(3, 98, 166, 1);
        transform: scale(0.98);
    }
    
    .cta-button:active {
        transform: scale(0.98);
    }
    
    /* Aumentar área de toque para elementos interactivos */
    .main-menu a, 
    .cta-button, 
    .close-btn, 
    .hamburger-menu {
        min-height: 44px; /* Tamaño mínimo recomendado para elementos táctiles */
        min-width: 44px;
    }
}

/*==================== GOOGLE FONTS ====================*/
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Rubik&display=swap");

/*==================== VARIABLES CSS ====================*/
:root {
  /*========== Colors ==========*/
  /* Change favorite color - Blue 210 - Purple 250 - Green 142 - Pink 340*/
  --hue-color: 210;

  /* HSL color mode */
  --first-color: hsl(var(--hue-color), 96%, 54%);
  --first-color-light: hsl(var(--hue-color), 96%, 69%);
  --first-color-alt: hsl(var(--hue-color), 96%, 37%);
  --first-color-lighter: hsl(var(--hue-color), 14%, 96%);
  --title-color: hsl(var(--hue-color), 12%, 15%);
  --text-color: hsl(var(--hue-color), 12%, 35%);
  --text-color-light: hsl(var(--hue-color), 12%, 65%);
  --white-color: #FFF;
  --body-color: hsl(var(--hue-color), 100%, 99%);
  --container-color: #FFF;

  /*========== Font and typography ==========*/
  --body-font: 'Lato', sans-serif;
  --pricing-font: 'Rubik', sans-serif;
  --biggest-font-size: 1.75rem;
  --normal-font-size: .938rem;
  --h2-font-size: 1.25rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .625rem;

  /*========== Margenes Bottom ==========*/
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.125rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
    --tiny-font-size: .688rem;
  }
}

/*==================== BASE ====================*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.container {
  max-width: 1024px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
}

/*==================== CARD PRICING ====================*/
.card {
  padding: 3rem 0;
}

.card__container {
  gap: 3rem 1.25rem;
}

.card__content {
  position: relative;
  background-color: var(--container-color);
  padding: 2rem 1.5rem 2.5rem;
  border-radius: 1.75rem;
  box-shadow: 0 12px 24px hsla(var(--hue-color), 61%, 16%, 0.1);
  transition: .4s;
}

.card__content:hover {
  box-shadow: 0 16px 24px hsla(var(--hue-color), 61%, 16%, 0.15);
}

.card__header-img {
  width: 50px;
  height: 30px;
}

.card__header-circle {
  width: 40px;
  height: 40px;
  background-color: var(--first-color-lighter);
  border-radius: 50%;
  margin-bottom: var(--mb-1);
  place-items: center;
}

.card__header-subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  text-transform: uppercase;
  margin-bottom: var(--mb-0-25);
}

.card__header-title {
  font-size: var(--biggest-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
}

.card__pricing {
  position: absolute;
  background: linear-gradient(157deg, var(--first-color-light) -12%, var(--first-color) 109%);
  width: 60px;
  height: 88px;
  right: 1.5rem;
  top: -1rem;
  padding-top: 1.25rem;
  text-align: center;
}

.card__pricing-number {
  font-family: var(--pricing-font);
}

.card__pricing-symbol {
  font-size: var(--smaller-font-size);
}

.card__pricing-number {
  font-size: var(--h2-font-size);
}

.card__pricing-month {
  display: block;
  font-size: var(--tiny-font-size);
}

.card__pricing-number, 
.card__pricing-month {
  color: var(--white-color);
}

.card__pricing::after, 
.card__pricing::before {
  content: '';
  position: absolute;
}

.card__pricing::after {
  width: 100%;
  height: 14px;
  background-color: var(--white-color);
  left: 0;
  bottom: 0;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.card__pricing::before {
  width: 14px;
  height: 16px;
  background-color: var(--first-color-alt);
  top: 0;
  left: -14px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.card__list {
  row-gap: .5rem;
  margin-bottom: var(--mb-2);
}

.card__list-item {
  display: flex;
  align-items: center;
}

.card__list-icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-right: var(--mb-0-5);
}

.card__button {
  padding: 1.25rem;
  border: none;
  font-size: var(--normal-font-size);
  border-radius: .5rem;
  background: linear-gradient(157deg, var(--first-color-light) -12%, var(--first-color) 109%);
  color: var(--white-color);
  cursor: pointer;
  transition: .4s;
}

.card__button:hover {
  box-shadow: 0 12px 24px hsla(var(--hue-color), 97%, 54%, 0.2);
}



/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  .card__content {
    padding: 2rem 1.25rem;
    border-radius: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 568px) {
  .card__container {
    grid-template-columns: repeat(2, 1fr);
  }
  .card__content {
    grid-template-rows: repeat(2, max-content);
  }
  .card__button {
    align-self: flex-end;
  }
}

/* For large devices */
@media screen and (min-width: 968px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .card {
    height: 100vh;
    align-items: center;
  }
  .card__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .card__header-circle {
    margin-bottom: var(--mb-1-25);
  }
  .card__header-subtitle {
    font-size: var(--small-font-size);
  }
}

/* Estilos para los tabs de navegación */
.tabs-container {
    margin-top: 30px;
    width: 100%;
  }
  
  .tabs-nav {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 30px;
    border-top: 2px solid #f0f0f0;
    padding-bottom: 10px;
    padding-top: 10px;
  }
  
  .tab-btn {
    background: none;
    border: none;
    padding: 12px 25px;
    margin: 0 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 30px;
  }
  
  .tab-btn:hover {
    color: #0362A6;
    background-color: rgba(3, 98, 166, 0.1);
  }
  
  .tab-btn.active {
    color: white;
    background-color: #0362A6;
  }
  
  .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #0362A6;
  }
  
  .tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
  }
  
  .tab-content.active {
    display: block;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive para los tabs */
  @media (max-width: 768px) {
    .tabs-nav {
      flex-wrap: wrap;
    }
    
    .tab-btn {
      margin: 5px;
      padding: 10px 20px;
      font-size: 1.1rem;
    }
  }
  
  @media (max-width: 576px) {
    .tabs-nav {
      flex-direction: column;
      align-items: center;
    }
    
    .tab-btn {
      width: 80%;
      margin: 5px 0;
    }
    
    .tab-btn.active::after {
      display: none;
    }
  }