* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ed1c24;
    font-family: Arial, sans-serif;
    color: white;
    text-align: center;
}

.container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 24px;
    font-weight: bold;
}

.btn {
    width: 100%;
    max-width: 350px;
    padding: 12px 16px;
    margin: 10px auto;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-google {
    background-color: white;
    color: #333;
}

.btn-google img {
    width: 20px;
    margin-right: 10px;
}

.btn-apple {
    background-color: black;
    color: white;
}

.btn-apple img {
    width: 20px;
    margin-right: 10px;
}

.ar-button {
    background-color: white; /* Un color verde atractivo */
    color: black;
    padding: 15px 30px;
    border: none;
    border-radius: 8px; /* Bordes ligeramente redondeados */
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra sutil para profundidad */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Transiciones suaves */
    margin: 72px auto;

    /* Animación de pulsación */
    animation: pulse 2s infinite; /* Nombre, duración, repetición infinita */
}

.ar-button:hover {
    background-color: white; /* Cambio de color al pasar el mouse */
    transform: scale(1.05); /* Un ligero escalado al pasar el mouse */
}

.ar-button:active {
    transform: scale(0.98); /* Ligero encogimiento al presionar */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra más pequeña al presionar */
    animation: none; /* Detener la pulsación cuando se presiona */
}

/* Definición de la animación de pulsación */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03); /* Se agranda un poco */
    }
    100% {
        transform: scale(1);
    }
}

.legal {
    font-size: 14px;
    color: white;
    margin: 20px auto;
    max-width: 350px;
}

.legal a {
    color: #add8ff;
    text-decoration: underline;
    cursor: pointer;
}

/* Responsive ajustado para móviles */
@media (min-width: 768px) {
    h1 {
    font-size: 28px;
    }
}

/* ============================
    Estilos del modal / bottom sheet
    ============================ */
/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 100;
    text-align: justify;
}
#overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor principal del modal */
#privacy-modal {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: -100%; /* oculto inicialmente */
    width: 100%;
    max-width: 500px;
    max-height: 80%;
    background-color: #fff;
    color: #333;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    transition: bottom 0.3s ease;
    overflow-y: auto;
    z-index: 101;
}

/* Cuando el modal está abierto */
#privacy-modal.active {
    bottom: 0;
}

/* Header del modal (barra superior con botón cerrar) */
#privacy-modal .modal-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 16px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 102;
}
#privacy-modal .modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
#privacy-modal .modal-header .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

/* Contenido del modal */
#privacy-modal .modal-content {
    padding: 16px;
    font-size: 14px;
    line-height: 1.5;
}
#privacy-modal .modal-content p {
    margin-bottom: 1em;
}

/* ============================
    Ajustes responsive
    ============================ */
@media (min-width: 768px) {
    h1 {
    font-size: 28px;
    }
    /* En web, mantenemos el modal en la parte inferior, pero centrado y con mayor ancho máximo */
    #privacy-modal {
    max-width: 600px;
    }
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    display: none;
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}