@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary: #4a3aff; /* Azul más profundo para confianza */
    --success: #00b894;
    --gold: #f39c12;
    --dark: #1a1a1a;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.5;
    font-size: 20px; /* Tamaño base más grande para legibilidad */
}

/* Header & Hero */
header {
    background: linear-gradient(135deg, #4a3aff, #6c5ce7);
    color: var(--white);
    padding: 60px 20px 100px;
    text-align: center;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

header .ganancia-header {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 20px;
    max-width: 600px;
    margin: 30px auto 0;
}

.ganancia-header h2 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.ganancia-header .ejemplos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.ejemplo-item {
    font-weight: 600;
}

.ejemplo-item span {
    display: block;
    font-size: 1.8rem;
    color: var(--white);
}

/* Price Badge */
.price-badge {
    background: var(--gold);
    color: var(--dark);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.5rem;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Main Content */
main {
    max-width: 1100px;
    margin: -60px auto 40px;
    padding: 0 20px;
}

section {
    background: var(--white);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
}

/* Últimos Ganadores Ticker */
#ganadores-ticker {
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: var(--primary);
    font-weight: 700;
}

.ticker-header h2 {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-align: left;
}

.ticker-container {
    flex-grow: 1;
    height: 40px; /* Altura de una sola fila */
    overflow: hidden;
    position: relative;
}

.ganadores-list {
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.5s ease-in-out;
}

.ganadores-list li {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.ganadores-list li span {
    color: var(--success);
    background: #e6fffa;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    #ganadores-ticker {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px 20px;
    }
    .ticker-container {
        width: 100%;
    }
}

/* Pasos Carousel */
.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.steps-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 5px 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.steps-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.step-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 2px solid #eee;
    transition: transform 0.3s;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

@media (min-width: 900px) {
    .step-card {
        flex: 0 0 calc(33.333% - 20px);
    }
    .carousel-dots {
        display: none;
    }
    .steps-container {
        overflow-x: visible;
        justify-content: center;
    }
}

.step-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.step-card h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.step-card p {
    font-weight: 500;
    color: #555;
}

/* Garantía y Pago */
.garantia-box {
    background: #eef2ff;
    border: 2px dashed var(--primary);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin-top: 20px;
}

.garantia-box .shield-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.payment-number-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.payment-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #d35400;
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.copy-btn {
    background: var(--light-bg);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:active {
    background: var(--primary);
    color: white;
}

.wa-button {
    background: #25D366;
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    margin-top: 15px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Botones y Inputs */
.cta-button {
    background: linear-gradient(to right, #4a3aff, #6c5ce7);
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(74, 58, 255, 0.3);
    transition: transform 0.2s;
}

.cta-button:active {
    transform: scale(0.98);
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 20px;
    background: var(--dark);
    color: var(--white);
}

/* Responsive */
@media (max-width: 600px) {
    header h1 { font-size: 2rem; }
    body { font-size: 18px; }
    .payment-number { font-size: 1.6rem; }
}
