/* --- Variables de Marca --- */
/* Modifica estos valores para personalizar la marca */
:root {
    --primary-color: #007bff; /* Color principal (botones, enlaces) */
    --secondary-color: #6c757d; /* Color secundario (texto sutil) */
    --background-color: #f8f9fa; /* Color de fondo */
    --text-color: #212529; /* Color de texto principal */
    --container-background: #ffffff; /* Fondo del contenedor principal */
    --font-family: 'Roboto', sans-serif;
}
/* --- Estilos Generales --- */
body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
}

.container {
    background-color: var(--container-background);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

h1 {
    color: var(--primary-color);
    font-weight: 700;
}

p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* --- Logo --- */
#brandLogo {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Esto crea el círculo */
    object-fit: cover; /* Asegura que la imagen llene el círculo sin distorsionarse */
    margin-bottom: 1rem;
    border: 4px solid var(--primary-color); /* Borde de color */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Sombra sutil */
}

/* --- Formulario --- */
#leadForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input {
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 1rem;
    font-family: var(--font-family);
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 9999px; /* Forma de píldora */
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem; /* Letra más grande */
    font-weight: 700; /* Letra en negrita */
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.pulse-animation {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

button:hover {
    opacity: 0.9;
}

button:active {
    transform: scale(0.98); /* Animación de clic */
}

button:disabled {
    background-color: #ccc;
    opacity: 0.7;
    cursor: not-allowed;
    animation: none; /* Desactiva la animación de pulso */
}

/* --- Resultado del Cupón --- */
#couponResult {
    margin-top: 2rem;
}

#couponCanvas {
    border: 1px dashed var(--primary-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    max-width: 100%;
    height: auto;
}

#downloadLink {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 9999px; /* Forma de píldora */
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-weight: 500;
}

#downloadLink:hover {
    opacity: 0.9;
}

#downloadLink:active {
    transform: scale(0.98); /* Animación de clic */
}