/* contacto.css */

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 520px;
    margin: 30px auto;
    padding: 24px 28px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

h1 {
    margin-top: 0;
    text-align: center;
    font-size: 1.5rem;
    color: #1f2937;
}

/* Alerts */

.alert {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.alert-success {
    background: #e6f9f0;
    color: #0f5132;
    border: 1px solid #b6e2cd;
}

.alert-danger {
    background: #fdecea;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Form */

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #cfd4dc;
    font-size: 0.95rem;
    transition: border 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79,70,229,0.15);
}

textarea {
    resize: vertical;
}

/* Button */

button {
    width: 100%;
    padding: 12px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.05s;
}

button:hover {
    background: #4338ca;
}

button:active {
    transform: scale(0.98);
}

/* Mobile */

@media (max-width: 480px) {
    .container {
        margin: 10px;
        padding: 20px;
    }
}
