/* styles.css - Botón Optimizado */

:root {
    --primary: #6a0dad;
    --accent: #ffd700;
    --bg: #1a1a2e;
    --card: #16213e;
    --text: #ffffff;
    --text-muted: #ccc;
    --danger: #ef4444;
    --success: #25d366;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    font-size: 1.07rem;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* ── Tipografía Impacto Visual ─────────────────────────── */
h1 {
    font-size: 2.4rem;
    margin: 10px 0;
    line-height: 1.2;
    font-weight: 800;
    background: linear-gradient(90deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

h2 {
    font-size: 1.55rem;
    color: var(--accent);
    margin-top: 0;
    overflow-wrap: break-word;
}

h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-top: 0;
}

.caveat {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
    display: block;
    line-height: 1.25;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.caveat-reflexion {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-style: italic;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .caveat {
        font-size: 2.8rem;
    }
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 5px 20px 20px;
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

.small {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Estrellas ──────────────────────────────────────────── */
#star-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle infinite ease-in-out;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 4px rgba(255, 255, 255, 1);
    }

    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
}

/* ── Vídeo ──────────────────────────────────────────────── */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    background-color: var(--bg);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 26, 0.78);
    z-index: -1;
}

/* ── Header ─────────────────────────────────────────────── */
.header {
    text-align: center;
    padding: 30px 0 20px;
    margin-bottom: 20px;
}

.brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #4fc3f7;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 8px rgba(79, 195, 247, 1), 0 0 20px rgba(79, 195, 247, 0.8), 0 0 45px rgba(79, 195, 247, 0.5);
    text-align: center;
    margin: 0 0 12px 0;
    white-space: nowrap;
}

.logo-img {
    width: 200px;
    height: 200px;
    margin-bottom: -15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 480px) {
    .brand-title {
        font-size: 2.6rem;
        letter-spacing: 3px;
    }
}

@media (min-width: 768px) {
    .brand-title {
        font-size: 3.8rem;
        letter-spacing: 5px;
    }
}

/* ── Banner Superior ────────────────────────────────────── */
.top-bar {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 10px 16px;
    font-weight: bold;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar.agotado {
    background: #7f1d1d;
}

.top-bar .kits-num {
    color: var(--accent);
    font-size: 1.05rem;
}

/* ── Tarjetas ───────────────────────────────────────────── */
.card {
    background: var(--card);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.card h2 {
    background: linear-gradient(90deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.card-highlight {
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.06);
}

/* ── BOTONES CTA ESTILO FINAL ───────────────────────────── */
@keyframes pulse-cta {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(255, 140, 0, 0.45), 0 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 20px rgba(255, 140, 0, 0.45), 0 0 0 5px rgba(255, 255, 255, 0.55);
    }
}

.cta-button {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 20px auto;
    padding: 18px 20px;
    background: #172F41;
    color: #7EFAC3;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 3px solid #16D315;
    cursor: pointer;
    animation: pulse-cta 2s ease-in-out infinite;
    transition: background 0.2s;
    line-height: 1.2;
    box-shadow: none;
}

.cta-button:hover {
    background: #1e3a50;
    box-shadow: none;
    transform: scale(1.02);
    animation-play-state: paused;
}

.cta-button .cta-line2 {
    color: #ffffff;
}

.cta-button .cta-line3 {
    color: #16D315;
}

/* Estructura interna del botón */
.cta-line1 {
    display: block;
    font-size: 1.25em;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.cta-line2 {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    opacity: 0.95;
}

.cta-line3 {
    display: block;
    font-size: 2.6em;
    font-weight: 900;
    line-height: 1;
    margin-top: 6px;
}

.cta-button.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: #666;
    box-shadow: none;
    -webkit-text-fill-color: initial;
    color: #ccc;
}

.whatsapp-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 15px 10px;
    background: var(--success);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    transition: transform 0.2s;
}

.whatsapp-btn:hover {
    transform: scale(1.02);
}

/* ── Precios ────────────────────────────────────────────── */
.price-old {
    text-decoration: line-through;
    color: var(--danger);
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin: 10px 0;
}

.price-new {
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(90deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    margin: 5px 0;
    text-align: center;
}

/* ── Listas ─────────────────────────────────────────────── */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.check-list li::before {
    content: '✔';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.step-num {
    background: var(--accent);
    color: #000;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 15px;
    margin-top: 2px;
}

/* ── Formularios ────────────────────────────────────────── */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: #1a1a3e;
    background-image: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #1a1a3e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

select option {
    background: #1a1a3e;
    color: white;
}

input:focus,
select:focus {
    border-color: var(--accent);
    outline: none;
}

/* Selector de País WhatsApp */
.wa-selector {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.wa-prefix-wrap {
    position: relative;
    flex-shrink: 0;
}

.wa-prefix-btn {
    width: 95px;
    height: 100%;
    padding: 10px 8px;
    background: #1a1a3e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    white-space: nowrap;
}

.wa-prefix-list {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    z-index: 999;
    max-height: 220px;
    overflow-y: auto;
    background: #1a1a3e;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    min-width: 215px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.wa-opt {
    padding: 9px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    color: white;
}

.wa-opt:hover {
    background: rgba(255, 215, 0, 0.12);
}

.wa-opt.selected {
    background: rgba(255, 255, 255, 0.08);
}

.wa-input {
    flex: 1;
    min-width: 0;
}

/* ── Testimonios ────────────────────────────────────────── */
.testimonial {
    display: none;
    font-style: italic;
    animation: fadeInTestimonial 0.5s ease;
}

.testimonial.active {
    display: block;
}

@keyframes fadeInTestimonial {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.testimonial-dots {
    text-align: center;
    margin-top: 18px;
}

.t-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.t-dot.active {
    background: var(--accent);
}

.testimonial span {
    display: block;
    margin-top: 5px;
    font-weight: bold;
    color: var(--accent);
    font-size: 0.9rem;
    font-style: normal;
}

/* ── Alertas ─────────────────────────────────────────────── */
.alert-box {
    padding: 14px 18px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    text-align: center;
    font-weight: 500;
}

.alert-error {
    background: rgba(255, 80, 80, .12);
    border: 1px solid rgba(255, 80, 80, .35);
    color: #ffaaaa;
}

.alert-warning {
    background: rgba(255, 180, 0, .08);
    border: 1px solid rgba(255, 180, 0, .25);
    color: #ffd700;
}

/* ── Checkout específicos ───────────────────────────────── */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-summary table {
    width: 100%;
    border-collapse: collapse;
}

.order-summary td {
    padding: 4px 0;
    vertical-align: middle;
}

.order-summary td:last-child {
    text-align: right;
    color: var(--danger);
    font-weight: 700;
}

.order-summary .total-row {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 5px;
    padding-top: 10px;
}

.coupon-section {
    margin-bottom: 20px;
}

.coupon-section label {
    display: block;
    text-align: center;
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.trust-elements {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.faq-item {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 14px;
}

.faq-item h4 {
    font-size: 0.95rem;
    color: var(--accent);
    margin: 0 0 6px 0;
}

.faq-item p {
    margin: 0;
    font-size: 0.88rem;
}

/* ── Gracias específicos ────────────────────────────────── */
.success-icon {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.question-text {
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 24px 15px 20px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
}

.site-footer a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ── WhatsApp Flotante ─────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 22px;
    right: 18px;
    z-index: 9999;
    background: #16D315;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.7);
}

.wa-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}