/* Importar fuente moderna */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #002fff, #00b7ff);
    color: #333;
    overflow-x: hidden;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    top: 100%; /* Justo debajo del header */
    left: 0;
    width: 100%;
    height: 6px;
    background: white;
    z-index: 1;
}

header {
    background: linear-gradient(90deg, #5900ff, #002fff);
    color: white;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
}

.logo {
    height: 80px;
    width: auto;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0;
}

.nav-button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #002fff; /* Letras azules */
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    font-size: 18px;
    background: white; /* Fondo blanco */
    font-family: 'Segoe UI', sans-serif; /* Fuente Aptos o similar */
}

.nav-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(240, 0, 0, 0.4);
}

.nav-button span {
    margin-right: 8px;
}

/* Quitar imágenes de fondo de los botones */
.nav-button.tickets {
    background: white;
}

.nav-button.contact {
    background: white;
}

.nav-button.winners {
    background: white;
}

.welcome-text {
    text-align: center;
    margin: 15px 0;
}

.welcome-text h1 {
    font-size: 1.5em;
    margin: 0;
    color: white; /* Texto blanco */
}

.welcome-text h2 {
    font-size: 2.5em;
    margin: 5px 0;
    font-weight: 700;
    color: white; /* Texto blanco */
}

.welcome-text p {
    font-size: 1.2em;
    margin: 5px 0;
    color: white; /* Texto blanco */
}

.welcome-text .static-arrow {
    color: white; /* Flechas blancas */
    font-size: 1.5em;
    vertical-align: middle;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

#sorteos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
    justify-content: center;
}

.sorteo {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.sorteo-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.sorteo-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

.countdown {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #1DA1F2;
    margin: 10px 0;
    padding: 10px;
    background-color: #e6f0fa;
    border-radius: 5px;
    display: inline-block;
}

.probar-suerte-btn {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background-color: #1DA1F2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.probar-suerte-btn:hover {
    background-color: #1a91da;
}

/* Estilos para el menú hamburguesa y la barra lateral */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    transform: scale(1.2);
    opacity: 0.9;
}

.menu-toggle .hamburger {
    font-size: 1.5em;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #002fff; /* Cambio a #002fff */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.4);
    padding: 30px 20px;
    border-radius: 10px 0 0 10px;
    transition: right 0.4s ease-in-out;
    z-index: 1003;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar.active {
    right: 0;
}

.sidebar-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-button {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background 0.3s ease, transform 0.3s ease;
    text-shadow: none;
    width: 100%; /* Asegurar que todos los botones tengan el mismo ancho */
}

.sidebar-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.sidebar-button:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.8;
}

.sidebar-button .icon {
    font-size: 1.2em;
}

/* Estilos para el modal (existente, ajustado para el formulario) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1004;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #1f3dc2;
    animation: fadeIn 0.3s ease-in;
    position: relative; /* Para posicionar el botón de cerrar */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content h3 {
    color: #000000;
    font-size: 1.5em;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.modal-content p {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.modal-close-btn {
    padding: 10px 20px;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.modal-close-btn:hover {
    background-color: #cc0000;
}

/* Nuevos estilos para el formulario de compartir */
.share-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-button {
    display: inline-block;
    margin: 5px 0;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.share-button[data-platform="whatsapp"] {
    background-color: #25D366;
}

.share-button[data-platform="facebook"] {
    background-color: #3b5998;
}

#copyMessage {
    background-color: #002fff;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff4444;
}

/* Overlay para sidebar y modales */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
}

.sidebar-overlay.active {
    display: block;
}

/* Media Queries */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-button {
        width: 100%;
        margin: 5px 0;
    }
}