/* css/generador-qr.css */
:root {
    --primary-gradient: linear-gradient(135deg, #2563eb, #1e40af);
    --secondary-gradient: linear-gradient(135deg, #64748b, #475569);
    --success-gradient: linear-gradient(135deg, #22c55e, #16a34a);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8fafc;
}

/* Botón de volver */
.back-button-container {
    max-width: 1200px;
    margin: 0 auto 1rem auto;
    padding: 0 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.back-button:hover {
    transform: translateX(-5px);
    box-shadow: var(--hover-shadow);
}

/* Contenedor principal */
.tool-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* Encabezado */
.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.tool-header h1 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tool-header i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-description {
    color: #64748b;
    font-size: 1.1rem;
}

/* Sección de controles */
.controls-section {
    max-width: 800px;
    margin: 0 auto 2rem;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e40af;
    font-weight: 600;
}

/* Campos de entrada */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Opciones de personalización */
.options-group {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
}

.option-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 1rem;
}

.color-options {
    display: grid;
    gap: 1rem;
}

.color-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    align-items: center;
    gap: 1rem;
}

input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 0;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: white;
}

.btn.primary {
    background: var(--primary-gradient);
    width: 100%;
}

.btn.secondary {
    background: var(--secondary-gradient);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

/* Sección de resultado */
.result-section {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.qr-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: inline-block;
}

#qrCode {
    margin-bottom: 1.5rem;
}

.qr-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Sección de información */
.info-section {
    margin-top: 3rem;
}

.info-section h3 {
    color: #1e40af;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
}

.info-card h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Notificaciones */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    background: var(--success-gradient);
    color: white;
    font-weight: 600;
    box-shadow: var(--card-shadow);
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

/* Animaciones */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tool-container {
        margin: 1rem;
        padding: 1rem;
    }

    .controls-section {
        padding: 1rem;
    }

    .option-row,
    .color-row {
        grid-template-columns: 1fr;
    }

    .qr-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .back-button-container {
        padding: 0 1rem;
    }
}