/* ── Email Image Access — Estilos ── */

.eia-container {
    max-width: 480px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
    text-align: center;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.eia-container h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.eia-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.8rem;
}

/* ── Formulario ── */
.eia-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.eia-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s;
}

.eia-input:focus {
    border-color: #6366f1;
}

.eia-btn {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.eia-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.eia-btn:active {
    transform: translateY(0);
}

.eia-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Mensajes ── */
.eia-msg {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.eia-msg.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.eia-msg.success {
    display: block;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ── Resultado con imagen ── */
.eia-result {
    display: none;
    margin-top: 1.5rem;
    animation: eiaFadeIn 0.4s ease;
}

.eia-result.visible {
    display: block;
}

.eia-result img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.eia-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.15s;
}

.eia-download-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff !important;
}

@keyframes eiaFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
