:root {
    --primary-text: #ffffff;
    --secondary-text: #cccccc;
    --playuki-pink: #ff2fb4;
    --playuki-orange: #ff6b00;
    --playuki-purple: #8833ff;
    --playuki-blue: #00b2ff;
    --playuki-bg: #0f0f0f;
    --playuki-dark: #1a1a1a;
    --playuki-gradient: linear-gradient(90deg, #f12711, #f953c6, #3f51b5);
    --color-marca-1: #f953c6;
    --color-marca-2: #00e1ff;
    --color-marca-3: #f12711;
    --menu-bg: rgba(255, 255, 255, 0.05);

    /* Variables para los colores de los títulos de sección editables */
    --peliculas-title-color: #ffcc00;
    /* Amarillo */
    --series-title-color: #00ffcc;
    /* Verde azulado */
    --canales-title-color: #ff6666;
    /* Rojo claro */
    --deportes-title-color: #66ccff;
    /* Azul claro */
    --novelas-title-color: #ff99ff;
    /* Rosa claro */
    --planes-title-color: #cccccc;
    /* Gris claro */
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--playuki-bg);
    overflow-x: hidden; /* Asegura que no haya scroll horizontal no deseado */
    color: var(--primary-text);
}

/* --- ESTILOS DE SECCIONES --- */
section {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;

    /* Asegura que la sección ocupe el 100% de la altura y ancho del viewport */
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: left;
    padding-left: 25px; /* Padding izquierdo para el contenido */
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    overflow: hidden; /* Evita que el contenido se desborde si es más grande que la sección */
    scroll-margin-top: 80px;
    box-sizing: border-box; /* Incluye padding en el ancho/alto */
}

/* Fondos de secciones */
#peliculas {
    background-image: url('m3gan.jpg');
}

#series {
    background-image: url('100.jpg');
}

#canales {
    background-image: url('hbo.jpg');
}

#deportes {
    background-image: url('deportes.webp');
}

#novelas {
    background-image: url('novelas.jpg');
}

#planes {
    background-color: var(--playuki-dark);
    /* No uses background-image aquí si solo quieres un color sólido */
    height: auto; /* Permite que la altura se ajuste al contenido */
    min-height: 100vh; /* Asegura que al menos ocupe la altura de la pantalla */
}


.section-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 20px;
    max-width: 800px;
    backdrop-filter: blur(5px);
    margin-left: 100px;
    margin-top: 60px;
    /* Ajustes para móviles */
    width: calc(100% - 50px); /* Ajusta el ancho restando el padding total */
    margin-left: 25px; /* Centra el contenido en móviles */
    margin-right: 25px; /* Centra el contenido en móviles */
    box-sizing: border-box;
}

/* 👇 Se expande en pantallas grandes */
@media (min-width: 1200px) {
    .section-content {
        max-width: 1000px;
        padding: 40px 60px;
        margin-left: 100px; /* Restaura el margen para pantallas grandes */
        margin-right: auto;
    }
}

/* --- ESTILOS DE TÍTULOS DE SECCIÓN EDITABLES --- */
/* Estilo base para todos los títulos */
.section-title {
    font-size: 2.4em;
    font-weight: 700;
    color: var(--primary-text);
}

/* Colores específicos para cada título de sección */
#peliculas .section-title {
    color: var(--peliculas-title-color);
    padding-left: 65px;
}

#series .section-title {
    color: var(--series-title-color);
    padding-left: 65px;
}

#canales .section-title {
    color: var(--canales-title-color);
    padding-left: 65px;
}

#deportes .section-title {
    color: var(--deportes-title-color);
    padding-left: 65px;
}

#novelas .section-title {
    color: var(--novelas-title-color);
    padding-left: 65px;
}

#planes .section-title {
    color: var(--planes-title-color);
    padding-left: 65px;
}

.section-text {
    font-size: 1.2rem;
    color: var(--secondary-text);
}

@media (max-width: 768px) {
    .section-text {
        font-size: 1.15rem; /* Ajusta según tu gusto */
        line-height: 1.6;
        padding-left: 65px; /* Mueve el texto 20px a la derecha */
        box-sizing: border-box; /* Asegura que el padding no cause desbordamiento */
    }

    /* Asegura que el padding-left de la sección no desplace el contenido en móviles */
    section {
        padding-left: 0; /* Elimina el padding-left fijo en móviles */
        justify-content: center; /* Cambiado a 'center' para que el contenido de la sección se centre */
    }
}



/* --- MENÚ SUPERIOR --- */
.top-menu {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 90px;
    background: rgba(44, 61, 92, 0.364);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-radius: 0 0 20px 20px;
    z-index: 9999;

    /* Nuevo: estilos para control en móvil */
    box-sizing: border-box; /* Asegura que el padding se incluya en el width/height */
}

.top-menu img {
    height: 60px;
    flex-shrink: 0; /* Evita que el logo se encoja */
}

/* Contenedor para el texto animado */
.animated-text-container {
    flex-grow: 1; /* Permite que el contenedor de texto ocupe el espacio restante */
    text-align: center;
    overflow: hidden; /* Oculta el texto que entra/sale */
    position: relative; /* Para posicionar el texto animado */
    height: 100%; /* Asegura que tenga altura para centrar el texto */
    display: flex; /* Para centrar el texto verticalmente */
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal si el texto es corto */
}

.animated-text {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--primary-text);
    position: absolute; /* Posiciona el texto para la animación */
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
    opacity: 0; /* Empieza invisible */
    transform: translateY(100%); /* Empieza por debajo */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; /* Transición suave */
}

.animated-text.active {
    opacity: 1;
    transform: translateY(0); /* Sube a su posición */
}

.animated-text.exiting {
    opacity: 0;
    transform: translateY(-100%); /* Sale por arriba */
}

/* Media query para móviles: el menú ocupa todo el ancho */
@media (max-width: 768px) {
    .top-menu {
        width: 100%; /* Ocupa todo el ancho en móviles */
        border-radius: 0 0 10px 10px; /* Bordes un poco menos pronunciados */
        padding: 10px 15px; /* Aumentado el padding vertical (antes era 0) */
        height: 90px; /* Aumentado la altura de 70px a 80px */
        box-sizing: border-box; /* Asegura que el padding se incluya en el width/height */
    }

    .top-menu img {
        height: 55px; /* Logo un poco más grande en móvil para ajustarse a la nueva altura */
    }

    .animated-text {
        font-size: 1.2em; /* Ajustado el tamaño de la fuente para que quepa bien */
    }
}

/* --- MENÚ LATERAL (SIDEBAR) --- */
.sidebar {
    position: fixed;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.menu-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--menu-bg);
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 2em;
}

.menu-btn:hover::after {
    content: attr(data-label);
    position: absolute;
    left: 70px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 1rem;
    color: white;
    transition: all 0.3s;
}

.menu-btn.active {
    background: white;
    color: black;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@media (max-width: 480px) {
    .sidebar {
        left: 15px; /* Adjust left position for smaller mobile screens */
        gap: 15px; /* Adjust gap between buttons */
    }
    .menu-btn {
        width: 50px; /* Slightly smaller buttons on very small screens */
        height: 50px;
        font-size: 1.8em;
    }
}

/* --- BOTÓN DE PAGO FLOTANTE --- */
.payment-cart-container-float {
    position: fixed;
    bottom: 5px;
    left: 50%; /* Centra horizontalmente */
    transform: translateX(-50%); /* Ajusta para el centrado perfecto */
    z-index: 1000;
    width: 80px; /* Ancho del contenedor para el botón principal */
    height: 80px; /* Altura del contenedor para el botón principal */
}

.main-payment-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(245, 245, 245, 0);
    color: white;
    border: 1px solid #00e1ff; /* Usar 'solid' para el borde */
    font-size: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    overflow: hidden;
}

/* Animación de destello */
.main-payment-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(45deg);
    opacity: 0;
    animation: shine 2s infinite linear;
    animation-delay: 1s;
}

.main-payment-btn:hover::before {
    animation: shine 1.5s infinite linear;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translate(-100%, -100%);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) translate(100%, 100%);
        opacity: 0;
    }
}

.main-payment-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
}

.sub-payment-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--playuki-dark);
    color: white;
    border: 2px solid white;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
    top: 0;
    left: 0;
}

.sub-payment-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.sub-payment-btn:nth-child(2).visible {
    transform: translate(-90px, -40px);
}

.sub-payment-btn:nth-child(3).visible {
    transform: translate(0px, -90px);
}

.sub-payment-btn:nth-child(4).visible {
    transform: translate(90px, -40px);
}

/* Estilos SweetAlert2 personalizados */
.swal2-popup {
    background-color: var(--playuki-dark) !important;
    color: var(--primary-text) !important;
    border-radius: 15px !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.swal2-title {
    color: var(--playuki-pink) !important;
    font-size: 1.8em !important;
    font-weight: bold !important;
}

.swal2-html-container {
    color: var(--secondary-text) !important;
    font-size: 1.1em !important;
    margin-top: 15px !important;
}

.swal2-confirm {
    background: var(--playuki-gradient) !important;
    color: white !important;
    border: none !important;
    border-radius: 25px !important;
    font-weight: bold !important;
    padding: 10px 25px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.2s ease !important;
}

.swal2-confirm:hover {
    transform: scale(1.05) !important;
}

.swal-paypal-button {
    background: #0070ba;
    /* Color de PayPal */
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.2s ease;
}

.swal-paypal-button:hover {
    background: #005a9c;
}

/* --- ESTILOS DE PLANES --- */
#planes {
    background-color: var(--playuki-dark);
    padding: 80px 20px; /* Ajusta el padding lateral para que se adapte mejor */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; /* Asegura que #planes ocupe el 100% del ancho */
    box-sizing: border-box; /* Incluye padding en el ancho */
}

#planes .section-content {
    background: none;
    backdrop-filter: none;
    margin: 0 auto;
    max-width: 100%;
    padding: 0;
    width: 100%; /* Asegura que el contenido ocupe el 100% */
}

#planes .section-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--playuki-pink);
    text-shadow: 0 0 15px rgba(255, 47, 180, 0.5);
    text-align: center;
}

#planes .section-text p {
    font-size: 1.0em;
    color: var(--secondary-text);
    max-width: 500px;
    margin: 0 auto 50px auto;
    text-align: center;
}

/* New: Flexbox for Horizontal Layout */
#planes .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%; /* Usa 100% para que se ajuste al padding de #planes */
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.plan-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 25px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    color: var(--primary-text);
    backdrop-filter: blur(8px);
    border: 3px solid transparent;
    position: relative;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    height: 100%;

    flex: 0 0 300px;
    max-width: 300px;
    min-width: 280px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.plan-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

/* Gradient Border Effect */
.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 3px;
    background: linear-gradient(45deg, var(--color-marca-1), var(--color-marca-2), var(--color-marca-3));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    animation: rotateGradient 4s linear infinite;
}

@keyframes rotateGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.plan-card.highlight {
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.7); /* Stronger glow for highlight card */
}

.plan-card.highlight::before {
    background: linear-gradient(45deg, var(--playuki-orange), var(--playuki-pink), var(--playuki-purple));
    animation: rotateGradientHighlight 6s linear infinite;
}

@keyframes rotateGradientHighlight {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.plan-header {
    background: linear-gradient(90deg, var(--playuki-purple), var(--playuki-blue));
    padding: 20px 0;
    width: 100%;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.plan-card.highlight .plan-header {
    background: linear-gradient(90deg, var(--playuki-orange), var(--playuki-pink));
}

.plan-header h3 {
    margin: 0;
    font-size: 1.8rem; /* Reduced font size for header to fit better */
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    color: var(--primary-text);
}

.plan-header .badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--primary-text);
    font-size: 1rem; /* Adjusted badge font size */
    padding: 4px 12px; /* Adjusted badge padding */
    border-radius: 5px;
    font-weight: 500;
    margin-top: 8px; /* Reduced margin */
    display: inline-block;
}

.plan-card.highlight .plan-header .badge {
    background-color: var(--playuki-pink);
    color: white;
    box-shadow: 0 0 10px rgba(255, 47, 180, 0.5);
}

.plan-image-wrapper {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 20px;
    width: 70%; /* Adjusted image wrapper width */
    max-width: 150px; /* Reduced max size for image wrapper */
    flex-shrink: 0;
}

.plan-image-wrapper img {
    border-radius: 10px;
}

.plan-card ul {
    padding: 0 20px;
    margin-bottom: 25px;
    width: 100%;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.plan-card ul li {
    list-style: none;
    font-size: 1em; /* Reduced font size for list items */
    margin-bottom: 8px; /* Reduced vertical spacing between list items */
    color: var(--secondary-text);
    display: flex;
    align-items: center;
    gap: 10px;
    /* Add padding-left to create space from the card's left margin */
    padding-left: 10px; /* Space from the left edge of the card */
}

.plan-card ul li i {
    color: var(--playuki-blue);
    font-size: 1.1em; /* Adjusted icon size */
}

.plan-card.highlight ul li i {
    color: var(--playuki-orange);
}

.price-highlight {
    font-size: 2.5rem; /* Reduced price font size */
    font-weight: 900;
    color: var(--color-marca-2);
    padding: 12px 25px; /* Reduced padding */
    border-radius: 40px;
    margin: 0 auto 25px auto; /* Reduced margin below */
    width: fit-content;
    position: relative;
}

.price-highlight.special {
    color: var(--playuki-orange);
    margin-top: auto; /* Esto empuja el elemento lo más abajo posible dentro del contenedor flex */
    flex-shrink: 0; /* Evita que se encoja */
}

.whatsapp-btn {
    background: linear-gradient(to right, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 12px 30px; /* Reduced padding */
    border-radius: 35px;
    font-size: 1.1em; /* Reduced font size */
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap */
    text-decoration: none;
    width: fit-content;
    margin-top: auto; /* Esto empuja el elemento lo más abajo posible si no hay espacio arriba */
    flex-shrink: 0; /* Evita que se encoja */
}

.whatsapp-btn:hover {
    background: linear-gradient(to right, #128C7E, #25D366);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    color: white;
}

/* Adjust for smaller screens: Ensure cards stack vertically on small screens */
@media (max-width: 767px) {
    #planes .row {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center stacked cards */
    }
    .plan-card {
        width: 90%; /* Take more width when stacked */
        max-width: 350px; /* Max width for stacked cards */
        margin-bottom: 25px; /* Space between stacked cards */
        margin-left: auto; /* Para centrar la tarjeta */
        margin-right: auto; /* Para centrar la tarjeta */
    }
    #planes .section-title {
        font-size: 2.5em;
    }
    #planes .section-text p {
        font-size: 1.1em;
    }
    .plan-header h3 {
        font-size: 1.8rem;
    }
    .price-highlight {
        font-size: 2.2rem;
    }
    .whatsapp-btn {
        font-size: 1em;
    }

    /* Ajuste para que el section-content no tenga margin-left en móviles */
    .section-content {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: 25px 20px; /* Asegura padding en los lados */
    }

    /* Asegura que el padding-left de la sección no desplace el contenido en móviles */
    section {
        padding-left: 0;
        justify-content: center;
    }
}


/* Ensure cards maintain horizontal layout on larger screens */
@media (min-width: 768px) {
    .col-lg-5,
    .col-md-6 {
        /* Remove Bootstrap column classes if using custom Flexbox setup */
        flex: 0 0 auto; /* Override Bootstrap column flex behavior */
        width: auto; /* Let flex control width */
        max-width: none; /* Remove max-width constraint */
        padding-left: 0; /* Remove Bootstrap padding */
        padding-right: 0; /* Remove Bootstrap padding */
    }
}
/* REMOVED: This media query was causing issues with centering */
/* @media (max-width: 767px) {
    #planes .section-content {
        padding-left: 40px;
    }

    .plan-card {
        width: calc(100% - 30px);
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
} */

/* Botón Flotante de WhatsApp */
.whatsapp-float-btn {
    position: fixed;
    right: 15px; /* Ajusta la posición a 15px desde la derecha */
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(64, 247, 100, 0.303);
    z-index: 9999;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.whatsapp-float-btn:hover {
    transform: translateY(-50%) scale(1.08); /* Ligeramente más grande al pasar el ratón */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* Efecto de ondas (pulsaciones) */
.whatsapp-float-btn::before,
.whatsapp-float-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.7); /* Color base de WhatsApp con transparencia */
    z-index: -1; /* Detrás del icono */
    animation: wave 2.5s infinite ease-out;
}

.whatsapp-float-btn::after {
    animation-delay: 1.25s; /* Retrasa la segunda onda */
}

@keyframes wave {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0.7;
    }
    100% {
        width: 120px; /* Tamaño máximo de la onda */
        height: 120px; /* Tamaño máximo de la onda */
        opacity: 0;
    }
}

/* Media Query para responsividad del botón flotante */
@media (max-width: 768px) {
    .whatsapp-float-btn {
        right: 15px; /* Ajusta la posición para pantallas más pequeñas */
        width: 50px;
        height: 50px;
        font-size: 2em;
    }
    @keyframes wave {
        0% {
            width: 50px;
            height: 50px;
            opacity: 0.7;
        }
        100% {
            width: 100px;
            height: 100px;
            opacity: 0;
        }
    }
}

/* Copyright flotante en la esquina inferior derecha */
.copyright-tag-fixed {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #ccc;
    font-size: 0.55rem;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 999;
    white-space: nowrap;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

.copyright-tag-fixed:hover {
    opacity: 1;
}

.copyright-tag-fixed i {
    margin-right: 6px;
    color: #ccc;
}

.pre-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.menu-btn.active {
    background-color: white;
    color: black;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Estilo base para los botones */
.wallet-btn {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Estilo cuando el botón está seleccionado */
.selected-wallet-btn {
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/*-----------------------------------------------*/
/* ---     ESTILOS PARA MÉTODOS DE PAGO     --- */
/*_______________________________________________*/

.payment-methods-section {
    width: 100%;
    max-width: 1200px;
    margin-top: 30px; /* Espacio superior para separar de los planes */
    text-align: center;
    padding: 0 20px; /* Añadir padding en los lados para móviles */
    box-sizing: border-box;
}

.payment-methods-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--color-marca-2); /* Cian para el título */
    text-shadow: 0 0 15px rgba(0, 225, 255, 0.5);
    margin-bottom: 40px;
}

.payment-cards-container {
    display: flex;
    flex-wrap: wrap; /* Permite que las tarjetas se envuelvan a la siguiente línea */
    justify-content: center;
    gap: 25px; /* Espacio entre las tarjetas */
    margin-top: 30px;
}

.payment-card-item {
    background: rgba(68, 67, 67, 0.747); /* Fondo semi-transparente */
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px; /* Ancho fijo para cada tarjeta de pago */
    min-width: 120px; /* Ancho mínimo para evitar que se aplaste */
    height: 140px; /* Altura fija para que todas sean iguales */
    transition: box-shadow 0.4s ease, border 0.4s ease;
    position: relative;
    overflow: hidden; /* Oculta el desbordamiento del pseudo-elemento de borde */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Sombra por defecto */
    box-sizing: border-box; /* Asegura que el padding se incluya en el width/height */
}

/* Borde cian animado al pasar el mouse */
.payment-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 3px; /* Grosor del borde */
    background: transparent; /* Por defecto transparente */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1; /* Detrás del contenido de la tarjeta */
    transition: background 0.4s ease; /* Transición suave para el borde */
}

.payment-card-item:hover::before {
    background: linear-gradient(45deg, var(--color-marca-2), var(--playuki-blue)); /* Borde cian al pasar el mouse */
    animation: rotatePaymentBorder 2s linear infinite; /* Animación de rotación del gradiente */
}

@keyframes rotatePaymentBorder {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}


.payment-logo {
    max-width: 75px; /* Tamaño del logo */
    max-height: 70px;
    object-fit: contain; /* Asegura que la imagen se ajuste sin distorsión */
    margin-bottom: 10px;
    filter: brightness(0.9) contrast(1.1); /* Ligeros ajustes para que resalte */
}

.payment-text {
    font-size: 1.0em; /* Tamaño del texto del método de pago */
    color: var(--secondary-text);
    margin: 0;
    font-weight: 500;
}

/* Media Queries para responsividad de los métodos de pago */
@media (max-width: 768px) {
    .payment-methods-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .payment-card-item {
        width: 120px; /* Un poco más pequeñas en móviles */
        height: 120px;
        padding: 15px;
    }

    .payment-logo {
        max-width: 60px;
        max-height: 60px;
        margin-bottom: 8px;
    }

    .payment-text {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .payment-methods-title {
        font-size: 1.6em;
    }

    .payment-card-item {
        width: calc(50% - 20px); /* Ajusta a 2 columnas con espacio */
        height: 100px;
        padding: 10px;
        max-width: 120px; /* Controla el tamaño máximo en pantallas muy chicas */
    }

    .payment-logo {
        max-width: 50px;
        max-height: 50px;
        margin-bottom: 5px;
    }

    .payment-text {
        font-size: 0.8em;
    }
}

/* Agrega este CSS para centrar el campo del código de verificación */
.swal2-container .swal2-html-container .swal2-input {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important; /* Asegura que sea un bloque para que los márgenes auto funcionen */
}

/* Estilo 2FA para inputs SweetAlert */
.code-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: nowrap;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.code-input {
  width: 44px;
  height: 58px;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  border: 2px solid #dfe1e5;
  border-radius: 8px;
  background-color: #f8f9fa;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
  user-select: text;
}

.code-input:focus {
  border-color: #4285f4;
  box-shadow: 0 0 8px rgba(66, 133, 244, 0.6);
  background-color: #ffffff;
  outline: none;
}

.code-input.filled {
  border-color: #34a853;
  background-color: #e6f4ea;
}

.verification-info {
  font-size: 14px;
  color: #5f6368;
  margin-top: 15px;
  text-align: center;
  user-select: none;
}

.phone-display {
  font-weight: 500;
  font-size: 16px;
  color: #202124;
  margin: 10px 0 20px;
  text-align: center;
  user-select: none;
}

/* Responsive */
@media (max-width: 480px) {
  .code-input {
    width: 36px;
    height: 50px;
    font-size: 24px;
  }
  .code-container {
    max-width: 280px;
    gap: 8px;
  }
}
