
html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #121212;
    --card-bg: #1a1a1a;
    --highlight-color: #ff9900;
    --secondary-bg: #242424;
    --text-color: #fff;
    --text-muted: #888;
    --success-color: #4CAF50;
}

body.light-theme {
    --bg-color: #f0f0f0;
    --card-bg: #ffffff;
    --highlight-color: #ff9900;
    --secondary-bg: #e5e5e5;
    --text-color: #333;
    --text-muted: #666;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    transition: background-color 0.4s ease, color 0.4s ease;
}

#menu-toggle {
    cursor: pointer;
    z-index: 100;
    width: 30px;
    height: 30px;
    fill: var(--highlight-color);
    transition: fill 0.2s ease-in-out;
    border-radius: 8px;
    padding: 5px;
    background-color: var(--secondary-bg);
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: var(--secondary-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 101;
    padding: 20px 20px 20px 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.side-menu.active {
    transform: translateX(0);
}

.close-btn {
    align-self: flex-end;
    font-size: 30px;
    color: var(--text-color);
    cursor: pointer;
    margin-bottom: 20px;
}

.side-menu h3 {
    margin-top: 0;
    text-align: left;
    margin-bottom: 20px;
    padding-left: 0;
    margin-left: 10px;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.side-menu li {
    margin-bottom: 8px;
    margin-left: 0; 
}

.side-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px; 
    font-weight: 500;
    display: block;
    padding: 8px 10px; 
    border-radius: 8px; 
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}
.side-menu a i {
    margin-right: 4px; /* Ajusta 8px para darle espacio entre el icono y la letra */
}
.side-menu a:hover,
.side-menu a:active {
    background-color: var(--highlight-color);
    color: var(--bg-color);
}

.side-menu .bottom-logo-container {
    font-size: 20px;
    font-weight: 700;
    color: var(--highlight-color);
    text-align: center;
    width: 100%;
    padding-bottom: 20px;
    margin-top: auto;
}
.side-menu .bottom-logo-container img {
    width: 70px;         /* Define el ancho del logo */
    height: 70px;        /* Define la altura del logo */
    border-radius: 50%;  /* Le da forma circular */
    object-fit: cover;   
    display: block;
    margin: 0 auto;      /* Centra la imagen horizontalmente */
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 100;
    display: none;
    transition: opacity 0.4s ease-in-out;
    opacity: 0;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.header-mobile,
.main-menu {
    display: none;
    width: 100%;
    max-width: 800px;
    padding: 10px;
    box-sizing: border-box;
    align-items: center;
}

.main-menu {
    display: flex;
    justify-content: space-between;
}

.main-menu-left {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-left: 95px;
}

.main-menu-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-menu ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    gap: 10px;
}

.main-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

.main-menu a:hover {
    background-color: var(--highlight-color);
    color: var(--bg-color);
}

.logo-container {
    font-size: 24px;
    font-weight: 700;
    color: var(--highlight-color);
    width: 100px; /* Reserve space for the logo */
    height: 50px;
}
.logo-container img {
    border-radius: 50%;
}
.dropdown-content-wrapper a i {
    margin-right: 4px;
}


.theme-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.4s, transform 0.2s, background-color 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    background-color: var(--secondary-bg);
}

body:not(.light-theme) .theme-button {
    box-shadow:
        inset 2px 2px 5px rgba(255, 255, 255, 0.2),
        inset -2px -2px 5px rgba(0, 0, 0, 0.5);
}

body:not(.light-theme) .theme-button:active {
    box-shadow:
        inset 1px 1px 3px rgba(255, 255, 255, 0.2),
        inset -1px -1px 3px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
}

body.light-theme .theme-button:active {
    box-shadow:
        inset 1px 1px 3px rgba(0, 0, 0, 0.1),
        inset -1px -1px 3px rgba(255, 255, 255, 0.8);
    transform: scale(0.95);
}

.theme-button .theme-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-color);
    fill: none;
    stroke-width: 2;
    transition: stroke 0.4s;
}

.pc-dropdown-menu-hidden {
    display: none;
}

#pc-dropdown-menu {
    position: absolute;
    top: 80px; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    z-index: 50; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: var(--secondary-bg);
    border-radius: 0 0 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; 
}

#pc-dropdown-menu.active {
    opacity: 1;
    pointer-events: auto; 
}

.dropdown-content-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 20px;
}

.dropdown-content-wrapper a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

.dropdown-content-wrapper a:hover {
    background-color: var(--highlight-color);
    color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: 450px;
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.image-section {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-top: 5px solid var(--highlight-color);
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 50%;
    display: block;
}

.date-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 153, 0, 0.7);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.4s ease;
}

body.light-theme .date-badge {
    background-color: rgba(255, 153, 0, 0.7);
}

.icon {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.main-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.info-section {
    margin-bottom: 20px;
    margin-top: -20px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-bg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4), -2px -2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

body.light-theme .social-icons a {
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), -2px -2px 4px rgba(255, 255, 255, 0.6);
}

.social-icons i {
    font-size: 20px;
    color: var(--text-color);
    transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
    transform: translateY(-3px) rotateZ(3deg); 
    box-shadow: 
        0 6px 10px rgba(0, 0, 0, 0.3), 
        0 2px 5px rgba(0, 0, 0, 0.15);
}
.social-icons a:hover i {
    color: var(--highlight-color);
    transform: scale(1.1); 
}

.description {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}

.raffle-title {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin: 10px 0;
    background: linear-gradient(90deg, #ff9900, #ffb347, #ff9900);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: moveGradient 3s linear infinite;
}

@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.progress-bar-container {
    background-color: #444;
    border-radius: 10px;
    height: 18px;
    position: relative;
    transition: background-color 0.4s ease;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
}

@keyframes progress-animation {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

body.light-theme .progress-bar-container {
    background-color: #444;
}

.progress-bar {
    background-color: var(--highlight-color);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
    position: relative;
    background-image: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%
    );
    background-size: 200% 100%;
    animation: progress-animation 3s linear infinite;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.4s ease;
}

body.light-theme .progress-text {
    color: #fff;
}

.ticket-price-display-section {
    width: 100%;
    max-width: 400px;
    margin: 25px auto 0;
    padding: 15px 20px;
    background-color: var(--secondary-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: background-color 0.3s ease;
}

.ticket-price-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--highlight-color);
    margin-bottom: 15px;
}

.ticket-price-value-container {
    font-size: 2.2em;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-color);
    margin-top: 10px;
}

.ticket-price-value-container i {
    color: var(--highlight-color);
}

.ticket-price-value {
    font-size: 1em;
    background: linear-gradient(90deg, var(--highlight-color), #fff, var(--highlight-color));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: moveGradient 3s linear infinite;
}

.tickets-section {
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 20px;
    margin: -20px -20px 0;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 20px;
}

.tickets-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.tickets-title i {
    color: var(--highlight-color);
    font-size: 22px;
    transform: rotate(-15deg);
}

.tickets-title i:last-child {
    transform: rotate(15deg);
}

.verification-section .tickets-title i {
    transform: none; 
}

.verification-section .tickets-title .icon-left {
    transform: scaleX(-1); 
}

.price-info {
    text-align: center; 
    font-size: 14px; 
    font-weight: 500; 
    color: var(--text-muted); 
    margin-top: -15px; 
    margin-bottom: 20px;
}

.ticket-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.ticket-btn {
    border: 1px solid transparent;
    padding: 15px 5px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    outline: none;
    background-color: var(--secondary-bg);
    color: var(--text-color);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4), -2px -2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

body.light-theme .ticket-btn {
    color: var(--text-color);
    background-color: var(--secondary-bg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.ticket-btn:active {
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.4), inset -2px -2px 5px rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
}

body.light-theme .ticket-btn:active {
     box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.8);
}

.ticket-btn.selected {
    background: linear-gradient(180deg, #ffb347, #ff9900);
    color: var(--text-color);
    border: 1px solid #e08b00;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.counter-btn {
    background: linear-gradient(180deg, #ffb347, #ff9900);
    color: var(--text-color);
    border: 1px solid #e08b00;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.2), 
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.counter-btn:active {
    background: linear-gradient(180deg, #ff9900, #ffb347);
    box-shadow: 
        0 2px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(2px) scale(0.98);
}

.counter-btn:disabled {
    background: #666;
    border-color: #555;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
    color: #ccc;
}

.ticket-counter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.trash-icon-container {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-bg);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.25s ease;
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.4),
        -2px -2px 4px rgba(255, 255, 255, 0.1);
}

body.light-theme .trash-icon-container {
    background-color: var(--secondary-bg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), -2px -2px 4px rgba(255, 255, 255, 0.6);
}

.trash-icon-container:active {
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.4),
        inset -2px -2px 5px rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
}

body.light-theme .trash-icon-container:active {
     box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.8);
}

.icon-trash {
    display: inline-block;
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
}
body.light-theme .icon-trash {
     fill: var(--text-muted);
}

.ticket-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ticket-input {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    width: 60px;
    text-align: center;
    -moz-appearance: textfield;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.3s ease;
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.4),
        inset -2px -2px 5px rgba(255, 255, 255, 0.1);
    outline: none;
}

body:not(.light-theme) .ticket-input { color: var(--text-color); }
body.light-theme .ticket-input { color: var(--text-color); }

.ticket-input:focus {
    box-shadow: 0 0 0 3px var(--highlight-color),
                inset 2px 2px 5px rgba(0, 0, 0, 0.4),
                inset -2px -2px 5px rgba(255, 255, 255, 0.1);
}

body.light-theme .ticket-input:focus {
    background-color: var(--secondary-bg);
    box-shadow: 0 0 0 3px var(--highlight-color),
                inset 2px 2px 5px rgba(0, 0, 0, 0.1),
                inset -2px -2px 5px rgba(255, 255, 255, 0.8);
}

.ticket-input::-webkit-outer-spin-button,
.ticket-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.buy-btn {
    width: 180px;
    background: linear-gradient(180deg, #ffb347, #ff9900);
    color: var(--text-color);
    border: 1px solid #e08b00;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700; 
    cursor: pointer;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.2), 
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    box-sizing: border-box;
}

.buy-btn:hover {
    box-shadow: 
        0 6px 10px rgba(0, 0, 0, 0.3), 
        0 2px 5px rgba(0, 0, 0, 0.15);
}

.buy-btn:active {
    background: linear-gradient(180deg, #ff9900, #ffb347);
    box-shadow: 
        0 2px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(2px) scale(0.98);
}

.buy-btn:disabled {
    background: #666;
    border-color: #555;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
    color: #ccc;
}

@keyframes exciting-blink {
    0% { 
        box-shadow: 0 0 0 rgba(255, 153, 0, 0.0);
        opacity: 1;
    }
    100% { 
        box-shadow: 0 0 15px rgba(255, 153, 0, 1), 0 0 25px rgba(255, 153, 0, 0.5); 
        opacity: 0.8;
    }
}

.buy-btn.loading {
    background: #666 !important;
    border-color: #555 !important;
    cursor: wait !important;
    color: #ccc !important;
    opacity: 1;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: exciting-blink 0.5s infinite alternate;
}
.buy-btn.loading i {
    margin-right: 8px;
}

.buy-btn-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#continue-buy-btn {
    width: 180px;
    padding: 15px;
    font-size: 18px;
    white-space: nowrap;
}

#tickets-generated-section {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 20px;
    margin: 20px auto 0; 
    max-width: 95%; 
    box-sizing: border-box;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#tickets-generated-section.visible {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

#tickets-generated-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--highlight-color);
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    background: linear-gradient(90deg, #ff9900, #ffb347, #ff9900);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: moveGradient 3s linear infinite;
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg-color);
    border-radius: 10px;
    transition: opacity 0.3s ease-in-out;
}

.ticket-number {
    background: var(--card-bg);
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.5);
}

.price-summary-container {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
    text-align: left;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 15px;
    color: var(--text-color);
}
.summary-label {
    font-weight: 500;
    color: var(--text-muted);
}
.summary-value {
    font-weight: 700;
    color: var(--text-color);
}
.summary-divider-line {
    border-top: 1px dashed var(--text-muted);
    opacity: 0.5;
    margin: 10px 0;
}

.total-price-highlight {
    font-size: 1.2em;
    font-weight: 700;
    background: linear-gradient(90deg, #ff9900, #ffb347, #ff9900);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: moveGradient 3s linear infinite;
}

.section-divider, .verification-divider, .top-buyers-divider {
    border: none;
    height: 2px;
    background-color: var(--secondary-bg);
    margin: 40px auto;
    width: 100%;
    max-width: 450px;
    display: none; /* Oculto en móvil */
}

.verification-section {
    padding-bottom: 20px;
}

.verification-content p {
    font-size: 16px;
    margin-top: -10px; 
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 500;
}

.modal-hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

#verification-modal, #terms-modal, #how-to-participate-modal, #contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

#verification-modal.active, #terms-modal.active, #how-to-participate-modal.active, #contact-modal.active {
    display: flex;
    opacity: 1;
}

#terms-modal .modal-content,
#how-to-participate-modal .modal-content {
    max-width: 300px;
}

#terms-modal .modal-content div::-webkit-scrollbar,
#how-to-participate-modal .modal-content div::-webkit-scrollbar {
    width: 8px;
}

#terms-modal .modal-content div::-webkit-scrollbar-track,
#how-to-participate-modal .modal-content div::-webkit-scrollbar-track {
    background: var(--secondary-bg);
    border-radius: 10px;
}

#terms-modal .modal-content div::-webkit-scrollbar-thumb,
#how-to-participate-modal .modal-content div::-webkit-scrollbar-thumb {
    background: var(--highlight-color);
    border-radius: 10px;
}

#terms-modal .modal-content div::-webkit-scrollbar-thumb:hover,
#how-to-participate-modal .modal-content div::-webkit-scrollbar-thumb:hover {
    background: #ffb347;
}
#terms-modal .modal-content h4,
#how-to-participate-modal .modal-content h4 {
    margin-top: -15px;
}
#terms-modal #modal-title,
#how-to-participate-modal #modal-title {
    margin-bottom: 20px; 
}
#terms-modal .modal-ok-btn,
#how-to-participate-modal .modal-ok-btn {
    margin-top: 20px;
}
.modal-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 300px;
    text-align: center;
    position: relative;
    animation: modal-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
}

@keyframes modal-in {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--highlight-color);
}

.modal-icon-container {
    font-size: 3em;
    color: var(--highlight-color);
    margin-bottom: 15px;
}

#modal-title {
    color: var(--highlight-color);
    margin-top: 0;
    margin-bottom: 10px;
}

#modal-message {
    color: var(--text-color);
    margin-bottom: 20px;
}

.modal-ok-btn {
    background: linear-gradient(180deg, #ffb347, #ff9900);
    color: var(--text-color);
    border: 1px solid #e08b00;
    padding: 10px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700; 
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-ok-btn:active {
    background: linear-gradient(180deg, #ff9900, #ffb347);
    transform: translateY(1px) scale(0.98);
}
.footer-nav a i {
    margin-right: 2px;
}
footer {
    width: 100%;
    background-color: var(--secondary-bg);
    padding: 15px 20px 20px;
    margin-top: 30px;
    box-sizing: border-box;
    color: var(--text-color);
    text-align: center;
    border-top: 3px solid var(--highlight-color);
    border-radius: 20px 20px 0 0;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-content .raffle-title {
    margin-top: 30px; /* Ajusta este valor (25px) para empujar el título hacia abajo */
}

.footer-nav {
    margin: 20px 0 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    transition: color 0.3s, background-color 0.3s;
    white-space: nowrap;
}

.footer-nav a:hover {
    color: var(--bg-color);
    background-color: var(--highlight-color);
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-logos img {
    height: 60px;
    transition: transform 0.3s;
}

.footer-logos img:hover {
    transform: scale(1.1);
}

.footer-social-icons {
    margin-bottom: 30px;
}

.footer-social-icons .social-icons {
    margin-bottom: 0;
}

.footer-legal-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-created-by {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

.top-buyers-section {
    padding: 20px;
    border-radius: 20px;
    margin: 20px auto; 
    max-width: 95%; 
    background-color: var(--secondary-bg);
    text-align: center;
}

.top-buyers-grid {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.buyer-rank-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    padding: 10px 5px;
    border-radius: 10px;
    background-color: var(--card-bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.buyer-rank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.rank-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.buyer-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--highlight-color);
    margin: 0 0 5px 0;
}

.buyer-amount {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
}

.disclaimer-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

@media (max-width: 767px) {
    body {
        padding: 10px;
        cursor: default !important;
    }

    .header-mobile {
        display: flex;
        margin-bottom: 10px;
        padding-top: 5px;
        padding-bottom: 5px;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        position: relative; /* Make this the positioning context */
    }

    .header-mobile .logo-container {
        display: flex;
        align-items: center;
        gap: 20px;
        transform: translateY(0px);
    }

    .header-mobile .header-logo img {
        width: 60px;
        height: 60px;
    }
   
    .header-mobile .menu-container {
        display: flex;
        align-items: center;
        gap: 10px;
        transform: translateY(-4px);
    }
    .header-mobile .logo-container > div:last-child {
        transform: translateY(-4px);
}
    .header-mobile .theme-button {
        margin-right: 10px;
    }

    .main-menu {
        display: none;
    }

    .date-badge {
        padding: 6px 10px;
        font-size: 12px;
        bottom: 15px;
        right: 15px;
    }

    .info-section {
        margin-top: -10px;
    }
    
    .social-icons {
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .description {
        margin-top: 0;
    }
    
    .progress-bar-container {
        margin-top: 50px;
    }
    
    .counter-btn:active {
        background: linear-gradient(180deg, #ff9900, #ffb347);
        box-shadow: 
            0 2px 3px rgba(0, 0, 0, 0.3),
            inset 0 1px 2px rgba(0, 0, 0, 0.1);
        transform: translateY(2px);
    }

    .buy-btn, 
    #continue-buy-btn {
        padding: 12px 15px; 
        font-size: 17px;    
        width: 160px;       
    }

    .ticket-price-display-section {
        max-width: 100%; 
        margin: 20px auto 0;
        padding: 15px;
        box-sizing: border-box; 
    }

    .price-summary-container,
    #tickets-generated-section,
    .verification-section {
        max-width: 410px; 
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    .verification-section {
        margin: 20px auto;
        padding: 20px; 
        border-radius: 20px; 
    }

    .top-buyers-section {
        max-width: 410px; 
        margin: 20px auto;
        box-sizing: border-box;
    }
    
    .top-buyers-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .buyer-rank-card {
        width: 80%;
        margin-bottom: 15px;
    }
    
    .rank-image {
        width: 60px;
        height: 60px;
    }
    
    .total-price-highlight {
        font-size: 15px;
    }

    .tickets-section {
        border-radius: 20px 20px 20px 20px;
        padding-bottom: 40px;
    }
    
    #pc-dropdown-menu {
        display: none !important;
    }

    .custom-cursor {
        display: none !important;
    }
}

@media (min-width: 768px) {
    body {
        padding-top: 10px;
    }
.main-menu-right {
        margin-right: -10px; /* Aplica el estilo que funciona, solo para PC. */
    }
    .main-menu {
        display: flex;
        margin-bottom: 10px;
    }
    
    .main-menu-left .logos-pc {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-left: 5px;
    }

    .main-menu-left .logo-container {
    position: absolute; /* Lo sacamos del flujo */
    top: -15px;       /* Lo movemos hacia arriba */
    left: 0;          /* Lo pegamos a la izquierda del contenedor */
    z-index: 1;
    width: 70px;
    height: 70px;
}

    .phone-input-group .code-select-wrapper::after { 
    right: 8px; 
    }

.main-menu-left .logo-container img {
    width: 100%;
    height: 100%;
}
    .header-mobile {
        display: none;
    }

    .container {
        max-width: 800px;
        height: auto;
    }

    .image-section {
        height: 350px;
        border-radius: 20px 20px 0 0;
    }

    .main-content {
        padding: 40px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .info-section {
        margin-top: -10px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .social-icons {
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .description {
        font-size: 20px;
        margin-top: 0;
    }

    .progress-bar-container {
        width: 100%;
        max-width: 400px;
        height: 18px;
        margin-top: 50px;
        margin-left: auto;
        margin-right: auto;
    }

    .progress-bar {
        height: 100%;
    }

    .progress-text {
        font-size: 14px;
    }
    
    .ticket-price-display-section {
        max-width: 450px;
        margin-top: 30px;
    }

    .section-divider {
        display: block;
        /* Nuevo: 60px arriba, auto a los lados, y solo 20px abajo (para que no se pegue) */
        margin: 80px auto 30px; 
        max-width: 450px;
    }
    
    .verification-divider {
        display: block;
        margin: 40px auto;
        max-width: 450px;
    }

    .top-buyers-divider {
        display: block;
        margin: 40px auto;
        max-width: 450px;
    }

    .tickets-section {
        background-color: transparent;
        padding: 0;
        margin: 0;
        position: relative;
        width: 100%;
    }

    h3 {
        text-align: center;
    }

    .trash-icon-container {
        position: static;
        margin: 0 auto;
        margin-top: 10px;
    }

    .ticket-options {
        justify-content: center;
    }

    .buy-btn {
        width: 180px;
        margin-top: 20px;
    }
    
    .buy-btn-container {
        width: auto;
        margin-top: 20px;
    }

    #tickets-generated-section .tickets-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    #tickets-generated-section {
        max-width: 450px; 
        margin: 20px auto 0;
        box-sizing: border-box; 
    }
    
    .price-summary-container {
        max-width: 450px;
        box-sizing: border-box;
    }
    
    .verification-section {
        max-width: 450px;
        margin: 20px auto 0;
        padding: 20px;
        box-sizing: border-box;
    }

    .top-buyers-section {
        max-width: 450px; 
        margin: 20px auto 0;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .buyer-rank-card {
        width: 30%; 
    }
    
    .rank-image {
        width: 90px;
        height: 90px;
    }
    
    .verification-content input {
        width: 250px !important; 
    }
    .verification-content button {
         width: 180px !important;
    }
    
    #pc-dropdown-menu {
        display: block; 
    }
    
    .main-menu ul {
        gap: 6px; 
    }
    
    .main-menu a {
        font-size: 15px;
        padding: 6px 10px;
    }
    
    .custom-cursor {
        display: none !important; 
    }
}
.verification-content #verify-btn {
    margin-top: 15px; /* Añade 15px de espacio arriba, que se suma al margen existente. */
}
.custom-cursor {
    display: none !important; 
}


.payment-container {
    width: 100%;
    max-width: 550px;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 30px;
    box-sizing: border-box;
    position: relative;
}

.main-title {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--highlight-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-bg);
    padding-bottom: 5px;
}

.summary-box {
    background-color: var(--secondary-bg);
    padding: 15px;
    border-radius: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 16px;
}

.summary-total {
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--text-muted);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    margin-top: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--secondary-bg);
    background-color: var(--secondary-bg);
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.5);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

.custom-select-wrapper {
    position: relative;
    z-index: 99;
}

.custom-select {
    padding-right: 35px;
    font-size: 16px;
}

#phone-code-select {
    font-size: 14px;
    padding-left: 8px;
    padding-right: 15px;
}

.custom-select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    font-size: 12px;
    transition: color 0.2s;
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.code-select-wrapper {
    width: 90px;
    flex-shrink: 0;
    z-index: 100;
}

.phone-number-input {
    flex-grow: 1;
}

.payment-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.bank-option {
    background-color: var(--card-bg);
    padding: 10px 5px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--secondary-bg);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bank-option.selected {
    border-color: var(--highlight-color);
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.6);
}

.bank-option img {
    width: 100%;
    max-width: 50px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: grayscale(0.2);
    transition: filter 0.3s;
    border-radius: 8px;
}

.payment-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-top: 5px;
}

.payment-info-label-large {
    font-size: 16px;
}

.payment-info-label {
    font-weight: 500;
    color: var(--text-muted);
}

.payment-info-value {
    font-weight: 700;
    color: var(--text-color);
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

.payment-info-value.highlighted {
    color: var(--highlight-color);
}

@keyframes copy-pulse {
    0% {
        background-color: var(--highlight-color);
    }
    50% {
        background-color: var(--success-color);
        box-shadow: 0 0 10px var(--success-color);
    }
    100% {
        background-color: var(--highlight-color);
    }
}

.copy-button {
    background-color: var(--highlight-color);
    color: var(--bg-color);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.copy-button.success {
    animation: copy-pulse 1.5s ease-in-out;
}

.proof-input-content {
    background-color: var(--secondary-bg);
    padding: 15px;
    border-radius: 10px;
}

.file-upload-box {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--text-muted);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    position: relative;
    overflow: hidden;
}

.file-upload-box:hover {
    border-color: var(--highlight-color);
}

.file-upload-box i {
    font-size: 2em;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.file-upload-box p {
    margin: 0;
    font-size: 14px;
    color: #AAAAAA;
    word-break: break-all;
    padding: 0 5px;
}

.size-limit-note {
    font-size: 11px;
    color: #AAAAAA;
    margin-top: 5px;
    text-align: center;
}

.file-preview {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    display: none;
    border-radius: 5px;
}

.hidden-file-input {
    display: none;
}

.terms-disclaimer {
    font-size: 14px;
    text-align: center;
    margin-top: 30px;
    color: var(--text-color);
}

.terms-link {
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(90deg, #ff9900, #ffb347, #ff9900);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: moveGradient 3s linear infinite;
}

.payment-btn {
    width: 100%;
    background: linear-gradient(180deg, #ffb347, #ff9900);
    color: var(--text-color);
    border: 1px solid #e08b00;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700; 
    cursor: pointer;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.2), 
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.payment-btn:active {
    background: linear-gradient(180deg, #ff9900, #ffb347);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(2px);
}

.modal-icon-container i {
    color: var(--highlight-color);
}

@media (min-width: 576px) {
    .payment-container {
        padding: 30px;
    }
    .header-logo {
        font-size: 32px;
    }
    .main-title {
        font-size: 2em;
    }
    h2 {
        font-size: 20px;
    }
    .payment-icons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .bank-option {
        padding: 10px 5px;
    }
    .bank-option img {
        max-width: 50px;
        height: auto;
        border-radius: 8px;
    }
}

@media (max-width: 575px) {
    .payment-container {
        padding: 20px;
    }
    .header-logo {
        font-size: 28px;
    }
    .main-title {
        font-size: 2em;
        font-weight: 700;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .payment-icons-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 3px;
    }
    
    .bank-option {
        padding: 5px;
    }
    .bank-option img {
        height: auto; 
        max-width: 100%;
        border-radius: 8px;
    }
    
    .code-select-wrapper::after {
        right: 8px; 
    }
    .code-select-wrapper .custom-select {
        padding-left: 9px; 
        padding-right: 20px;
    }
    
    .payment-info-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
    }
    
    .payment-info-label {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .payment-info-value {
        font-size: 14px;
        text-align: left;
        word-break: break-all;
        white-space: normal;
        max-width: 100%;
    }
}

/* intl-tel-input overrides */
.iti {
    width: 100%;
}

.iti__control {
    width: 100%;
    border-radius: 10px !important;
    border: 1px solid var(--secondary-bg) !important;
    background-color: var(--secondary-bg) !important;
    color: var(--text-color) !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 12px 15px !important;
}

.iti__input {
    width: 100%;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-color) !important;
}

.iti__dropdown-content {
    background-color: var(--secondary-bg) !important;
    border: 1px solid var(--highlight-color) !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    z-index: 101 !important;
}

.iti__country-list {
    overflow-y: auto !important;
}

.iti__country {
    color: var(--text-color) !important;
}

.iti__country:hover {
    background-color: var(--highlight-color) !important;
}

.iti__dial-code {
    color: var(--text-muted) !important;
}

.iti__search-input {
    padding: 8px !important;
    padding-left: 35px !important;
}

.iti__search-input-container {
    position: relative;
}

.iti__search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.iti__search-input:focus + .iti__search-icon {
    display: none;
}

/* Thank you page styles */
.thank-you-container {
    max-width: 500px;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.thank-you-icon {
    font-size: 4em;
    color: var(--success-color);
    margin-bottom: 20px;
    margin-top: -20px;
}
.thank-you-container h1 {
    font-size: 2em;
    font-weight: 700;
    color: var(--highlight-color);
    margin-bottom: 20px;
}
.thank-you-container p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}
.reminder {
    text-align: left;
    margin-top: 30px;
    padding: 20px;
    background-color: var(--secondary-bg);
    border-radius: 10px;
}
.reminder strong {
    display: block;
    margin-bottom: 15px;
}
.reminder ul {
    padding-left: 20px;
    margin: 0;
}
.reminder li {
    margin-bottom: 10px;
}
.final-message {
    margin-top: 30px;
    font-weight: 600;
}
.home-button {
    width: 180px;
    background: linear-gradient(180deg, #ffb347, #ff9900);
    color: var(--text-color);
    border: 1px solid #e08b00;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700; 
    cursor: pointer;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.2), 
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    box-sizing: border-box;
    display: inline-block;
    margin-top: 20px;
}
.home-button:hover {
    box-shadow: 
        0 6px 10px rgba(0, 0, 0, 0.3), 
        0 2px 5px rgba(0, 0, 0, 0.15);
}
.home-button:active {
    background: linear-gradient(180deg, #ff9900, #ffb347);
    box-shadow: 
        0 2px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(2px) scale(0.98);
}

@media (max-width: 767px) {
    .thank-you-container h1 {
        font-size: 1.8em;
        margin-top: -10px;
    }
    .home-button {
        padding: 12px 15px; 
        font-size: 17px;    
        width: 160px;       
    }
}
body.thank-you-page {
    justify-content: center;
    align-items: center;
    flex-direction: row;
    text-align: center;
}
@keyframes blink-animation {
    0%, 100% {
        opacity: 1; /* Completamente visible */
    }
    80% {
        opacity: 0; /* Completamente invisible (desaparece) */
    }
}
.blinking-date {
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.7); 
    animation: blink-animation 1.5s infinite alternate;
}
/* --- BOTÓN FLOTANTE DE WHATSAPP --- */

/* Definición de variables de color con el naranja oficial */
:root {
    --whatsapp-color: var(--highlight-color); /* #ff9900 */
    --whatsapp-color-dark: #cc7a00; /* Naranja más oscuro para hover */
}

/* ⚠️ ESTO ES LO QUE ESTABA FALTANDO ⚠️ */
.whatsapp-container {
    position: fixed; /* Esto lo hace flotar */
    bottom: 30px; /* Posición vertical */
    right: 30px; /* Posición horizontal */
    z-index: 999; /* Asegurar que esté por encima de todo */
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Estilos para el botón de WhatsApp (ahora un enlace <a>) */
.whatsapp-btn {
    /* 👇 NUEVO CÓDIGO DE DEGRADADO Y MOVIMIENTO 👇 */
    background: linear-gradient(90deg, #ff9900, #ffb347, #ff9900);
    background-size: 200% 100%; /* NECESARIO para el movimiento */
    animation: moveGradient 3s linear infinite, pulse 2s infinite;
    /* 👆 FIN CÓDIGO NUEVO 👆 */
    
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px; 
    height: 50px; 
    font-size: 25px; 
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none; 
}

.whatsapp-btn:hover {
    background-position: 0% 50%; /* Fija el degradado en la posición inicial */
    background: var(--whatsapp-color-dark); /* Color más oscuro para el hover */
    
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.4);
    animation-play-state: paused; /* Detiene las animaciones temporalmente */
}

/* Texto al lado */
.whatsapp-text {
    background-color: white;
    color: var(--whatsapp-color-dark); 
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: absolute;
    right: 60px;
}

.whatsapp-container:hover .whatsapp-text {
    opacity: 1;
    transform: translateX(0);
}

/* Efecto de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.7); 
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 153, 0, 0); 
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0);
    }
}

/* Versión para móvil */
@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .whatsapp-text {
        display: none; 
    }
}