/* ESTILOS CSS PURO - style.css */

/* --- CSS RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}
/* ------------------- */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Contenedor Principal (Tarjeta) */
.card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo-container { margin-bottom: 1.5rem; display: flex; justify-content: center; }
.logo-container img { height: 80px; object-fit: contain; }

h2 { font-size: 1.5rem; color: #1f2937; margin: 0 0 10px 0; font-weight: 700; }
label { display: block; color: #4b5563; margin-bottom: 10px; font-size: 0.9rem; font-weight: 500; }

/* Input con Icono */
.input-group { position: relative; margin-bottom: 1.5rem; }
.input-icon { position: absolute; top: 50%; left: 10px; transform: translateY(-50%); color: #9ca3af; }
.input-field {
    width: 100%;
    padding: 12px 12px 12px 35px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.input-field:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }

/* Botones Generales */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
    margin-top: 10px;
}

/* Colores de Botones */
.btn-primary { background-color: #2563eb; color: white; }
.btn-primary:hover { background-color: #1d4ed8; }

.btn-success { background-color: #059669; color: white; }
.btn-success:hover { background-color: #047857; }

.btn-sparkle { background-color: #f59e0b; color: #1f2937; }
.btn-sparkle:hover { background-color: #d97706; }

.btn-whatsapp { background-color: #22c55e; color: white; }
.btn-whatsapp:hover { background-color: #16a34a; }

.btn-secondary { background-color: #e5e7eb; color: #1f2937; }
.btn-secondary:hover { background-color: #d1d5db; }

/* Nota pequeña */
.note { margin-top: 1rem; font-size: 0.75rem; color: #9ca3af; }

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-overlay.active { display: flex; }

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
}

.icon-error { color: #ef4444; font-size: 3rem; margin-bottom: 1rem; }

.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* Estilos específicos para el modal de texto generado (Gemini) */
.gemini-output {
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    background-color: #f9fafb;
    border-radius: 5px;
    padding: 1rem;
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: #374151;
    margin-top: 15px;
}

/* Spinner de carga */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}