* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 16px;
}

.container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    max-width: 960px;
    width: 100%;
    overflow: hidden;
}

/* Layout principal lado a lado */
.main-layout {
    display: flex;
    min-height: 0;
}

/* Sección de error (izquierda) */
.error-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 28px;
    background: #fafbfc;
    border-right: 1px solid #e2e8f0;
}

.error-icon {
    margin-bottom: 14px;
}

.error-titulo {
    font-size: 19px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.3;
}

.error-subtitulo {
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
}

/* Sección formulario (derecha) */
.form-section {
    flex: 1;
    padding: 24px 28px;
    min-width: 0;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.form-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: #F5A623;
}

.form-description {
    font-size: 12px;
    color: #718096;
    margin-bottom: 16px;
}

/* Grupos del formulario */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 4px;
}

.form-group textarea,
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #2d3748;
    background: #fdf6ec;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.form-group textarea:focus,
.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    border-color: #F5A623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

.form-group textarea::placeholder,
.form-group input::placeholder {
    color: #a0aec0;
}

.form-group textarea {
    resize: vertical;
    min-height: 68px;
}

/* Fila de nombre + teléfono */
.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

/* Input con icono */
.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 36px;
}

/* Opciones de contacto */
.contact-options {
    display: flex;
    gap: 10px;
}

.contact-option {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #718096;
    user-select: none;
}

.contact-option:hover {
    border-color: #F5A623;
    color: #F5A623;
}

.contact-option.selected {
    border-color: #F5A623;
    background: #fef9f0;
    color: #F5A623;
}

.contact-option span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Errores de campo */
.field-error {
    display: block;
    font-size: 11px;
    color: #e53e3e;
    margin-top: 3px;
    min-height: 14px;
}

/* Botón submit */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #43cea2, #3cbfae);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.btn-submit:hover {
    opacity: 0.92;
}

.btn-submit:active {
    transform: scale(0.99);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* WhatsApp link */
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #25D366;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid #25D366;
    border-radius: 30px;
    transition: all 0.2s;
}

.whatsapp-link:hover {
    background: #25D366;
    color: #fff;
}

.whatsapp-link:hover svg {
    fill: #fff;
}

/* Overlay de alerta */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.alert-box {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.3s ease;
}

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

.alert-icon {
    margin-bottom: 14px;
}

.alert-icon svg {
    display: inline-block;
}

.alert-message {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.alert-message a {
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
}

.alert-message a:hover {
    text-decoration: underline;
}

.alert-close-btn {
    padding: 10px 32px;
    background: linear-gradient(135deg, #43cea2, #3cbfae);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.alert-close-btn:hover {
    opacity: 0.9;
}

.alert-close-btn.alert-error-btn {
    background: linear-gradient(135deg, #F5A623, #e6951c);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 12px 8px;
        align-items: flex-start;
    }

    .container {
        max-width: 100%;
    }

    .main-layout {
        flex-direction: column;
    }

    .error-section {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 24px 20px;
    }

    .form-section {
        padding: 20px;
    }

    .error-titulo {
        font-size: 17px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-option {
        padding: 10px 6px;
    }
}
